home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX auxiliary file, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| gt2
| Textdatei (UNIX)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 72 61 69 6c 2e 73 | 74 79 20 2d 20 73 74 79 |% rail.s|ty - sty|
|00000010| 6c 65 20 66 69 6c 65 20 | 74 6f 20 73 75 70 70 6f |le file |to suppo|
|00000020| 72 74 20 72 61 69 6c 72 | 6f 61 64 20 64 69 61 67 |rt railr|oad diag|
|00000030| 72 61 6d 73 0a 25 20 30 | 39 2d 4a 75 6c 2d 39 30 |rams.% 0|9-Jul-90|
|00000040| 20 4c 2e 20 52 6f 6f 69 | 6a 61 6b 6b 65 72 73 0a | L. Rooi|jakkers.|
|00000050| 25 20 30 38 2d 4f 63 74 | 2d 39 30 20 4c 2e 20 52 |% 08-Oct|-90 L. R|
|00000060| 6f 6f 69 6a 61 6b 6b 65 | 72 73 09 66 69 78 65 64 |ooijakke|rs.fixed|
|00000070| 20 63 65 6e 74 65 72 69 | 6e 67 20 62 75 67 20 77 | centeri|ng bug w|
|00000080| 68 65 6e 20 5c 72 61 69 | 6c 40 74 6d 70 63 3c 30 |hen \rai|l@tmpc<0|
|00000090| 2e 0a 25 20 30 37 2d 46 | 65 62 2d 39 31 20 4c 2e |..% 07-F|eb-91 L.|
|000000a0| 20 52 6f 6f 69 6a 61 6b | 6b 65 72 73 09 61 64 64 | Rooijak|kers.add|
|000000b0| 65 64 20 5c 72 61 69 6c | 6f 70 74 69 6f 6e 73 20 |ed \rail|options |
|000000c0| 63 6f 6d 6d 61 6e 64 2c | 20 69 6e 64 65 78 69 6e |command,| indexin|
|000000d0| 67 0a 25 20 30 38 2d 46 | 65 62 2d 39 31 20 4c 2e |g.% 08-F|eb-91 L.|
|000000e0| 20 52 6f 6f 69 6a 61 6b | 6b 65 72 73 09 6d 69 6e | Rooijak|kers.min|
|000000f0| 6f 72 20 66 69 78 65 73 | 0a 25 20 54 68 69 73 20 |or fixes|.% This |
|00000100| 73 74 79 6c 65 20 66 69 | 6c 65 20 6e 65 65 64 73 |style fi|le needs|
|00000110| 20 74 6f 20 62 65 20 75 | 73 65 64 20 69 6e 20 63 | to be u|sed in c|
|00000120| 6f 6e 6a 75 6e 63 74 69 | 6f 6e 20 77 69 74 68 20 |onjuncti|on with |
|00000130| 74 68 65 20 27 72 61 69 | 6c 27 0a 25 20 70 72 6f |the 'rai|l'.% pro|
|00000140| 67 72 61 6d 2e 20 52 75 | 6e 6e 69 6e 67 20 4c 61 |gram. Ru|nning La|
|00000150| 54 65 58 20 61 73 20 27 | 6c 61 74 65 78 20 66 69 |TeX as '|latex fi|
|00000160| 6c 65 27 20 70 72 6f 64 | 75 63 65 73 20 66 69 6c |le' prod|uces fil|
|00000170| 65 2e 72 61 69 2c 20 77 | 68 69 63 68 20 73 68 6f |e.rai, w|hich sho|
|00000180| 75 6c 64 20 62 65 0a 25 | 20 70 72 6f 63 65 73 73 |uld be.%| process|
|00000190| 65 64 20 62 79 20 52 61 | 69 6c 20 77 69 74 68 20 |ed by Ra|il with |
|000001a0| 27 72 61 69 6c 20 66 69 | 6c 65 27 2e 20 54 68 69 |'rail fi|le'. Thi|
|000001b0| 73 20 70 72 6f 64 75 63 | 65 73 20 66 69 6c 65 2e |s produc|es file.|
|000001c0| 72 61 6f 2c 20 77 68 69 | 63 68 20 77 69 6c 6c 0a |rao, whi|ch will.|
|000001d0| 25 20 62 65 20 70 69 63 | 6b 65 64 20 75 70 20 62 |% be pic|ked up b|
|000001e0| 79 20 4c 61 54 65 58 20 | 6f 6e 20 74 68 65 20 6e |y LaTeX |on the n|
|000001f0| 65 78 74 20 27 6c 61 74 | 65 78 20 66 69 6c 65 27 |ext 'lat|ex file'|
|00000200| 20 72 75 6e 2e 0a 25 20 | 4c 61 54 65 58 20 77 69 | run..% |LaTeX wi|
|00000210| 6c 6c 20 77 61 72 6e 20 | 69 66 20 74 68 65 72 65 |ll warn |if there|
|00000220| 20 69 73 20 6e 6f 20 66 | 69 6c 65 2e 72 61 6f 20 | is no f|ile.rao |
|00000230| 6f 72 20 69 74 27 73 20 | 6f 75 74 20 6f 66 20 64 |or it's |out of d|
|00000240| 61 74 65 2e 0a 25 20 54 | 68 65 20 6d 61 63 72 6f |ate..% T|he macro|
|00000250| 73 20 69 6e 20 74 68 69 | 73 20 66 69 6c 65 20 74 |s in thi|s file t|
|00000260| 68 75 73 20 63 6f 6e 73 | 69 73 74 20 6f 66 20 74 |hus cons|ist of t|
|00000270| 77 6f 20 70 61 72 74 73 | 3a 20 74 68 6f 73 65 20 |wo parts|: those |
|00000280| 74 68 61 74 20 72 65 61 | 64 20 61 6e 64 0a 25 20 |that rea|d and.% |
|00000290| 77 72 69 74 65 20 74 68 | 65 20 2e 72 61 69 20 61 |write th|e .rai a|
|000002a0| 6e 64 20 2e 72 61 6f 20 | 66 69 6c 65 73 2c 20 61 |nd .rao |files, a|
|000002b0| 6e 64 20 74 68 6f 73 65 | 20 74 68 61 74 20 64 6f |nd those| that do|
|000002c0| 20 74 68 65 20 61 63 74 | 75 61 6c 20 66 6f 72 6d | the act|ual form|
|000002d0| 61 74 74 69 6e 67 0a 25 | 20 6f 66 20 74 68 65 20 |atting.%| of the |
|000002e0| 72 61 69 6c 72 6f 61 64 | 20 64 69 61 67 72 61 6d |railroad| diagram|
|000002f0| 73 2e 0a 25 20 72 61 69 | 6c 72 6f 61 64 20 72 65 |s..% rai|lroad re|
|00000300| 61 64 2f 77 72 69 74 65 | 20 6d 61 63 72 6f 73 0a |ad/write| macros.|
|00000310| 25 20 5c 62 65 67 69 6e | 7b 72 61 69 6c 7d 20 54 |% \begin|{rail} T|
|00000320| 45 58 54 20 5c 65 6e 64 | 7b 72 61 69 6c 7d 20 3a |EXT \end|{rail} :|
|00000330| 20 54 45 58 54 20 69 73 | 20 77 72 69 74 74 65 6e | TEXT is| written|
|00000340| 20 6f 75 74 20 74 6f 20 | 74 68 65 20 2e 72 61 69 | out to |the .rai|
|00000350| 20 66 69 6c 65 2c 0a 25 | 20 20 20 20 20 20 20 20 | file,.%| |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000370| 20 20 20 20 20 20 20 20 | 61 73 20 5c 72 61 69 6c | |as \rail|
|00000380| 40 69 7b 4e 52 7d 7b 54 | 45 58 54 7d 2e 20 54 68 |@i{NR}{T|EXT}. Th|
|00000390| 65 6e 20 74 68 65 20 6d | 61 74 63 68 69 6e 67 0a |en the m|atching.|
|000003a0| 25 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |% | |
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003c0| 20 5c 72 61 69 6c 40 6f | 7b 4e 52 7d 7b 46 4d 54 | \rail@o|{NR}{FMT|
|000003d0| 7d 20 66 72 6f 6d 20 74 | 68 65 20 2e 72 61 6f 20 |} from t|he .rao |
|000003e0| 66 69 6c 65 20 69 73 0a | 25 20 20 20 20 20 20 20 |file is.|% |
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000400| 20 20 20 20 20 20 20 20 | 20 65 78 65 63 75 74 65 | | execute|
|00000410| 64 20 28 69 66 20 64 65 | 66 69 6e 65 64 29 2e 0a |d (if de|fined)..|
|00000420| 25 20 5c 72 61 69 6c 6f | 70 74 69 6f 6e 73 7b 4f |% \railo|ptions{O|
|00000430| 50 54 49 4f 4e 53 7d 20 | 3a 20 4f 50 54 49 4f 4e |PTIONS} |: OPTION|
|00000440| 53 20 61 72 65 20 77 72 | 69 74 74 65 6e 20 6f 75 |S are wr|itten ou|
|00000450| 74 20 74 6f 20 74 68 65 | 20 2e 72 61 69 20 66 69 |t to the| .rai fi|
|00000460| 6c 65 2c 0a 25 20 20 20 | 20 20 20 20 20 20 20 20 |le,.% | |
|00000470| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 73 | | as|
|00000480| 20 5c 72 61 69 6c 40 70 | 7b 4f 50 54 49 4f 4e 53 | \rail@p|{OPTIONS|
|00000490| 7d 2e 0a 25 20 5c 72 61 | 69 6c 74 65 72 6d 7b 49 |}..% \ra|ilterm{I|
|000004a0| 44 45 4e 54 2c 49 44 45 | 4e 54 2c 2e 2e 2e 7d 20 |DENT,IDE|NT,...} |
|000004b0| 3a 20 66 6f 72 6d 61 74 | 20 49 44 45 4e 54 20 61 |: format| IDENT a|
|000004c0| 73 20 74 65 72 6d 69 6e | 61 6c 73 2e 20 77 72 69 |s termin|als. wri|
|000004d0| 74 65 73 20 6f 75 74 0a | 25 20 20 20 20 20 20 20 |tes out.|% |
|000004e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004f0| 20 20 20 20 20 20 20 5c | 72 61 69 6c 40 74 7b 49 | \|rail@t{I|
|00000500| 44 45 4e 54 7d 20 74 6f | 20 74 68 65 20 2e 72 61 |DENT} to| the .ra|
|00000510| 69 20 66 69 6c 65 20 61 | 6e 64 0a 25 20 20 20 20 |i file a|nd.% |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 64 65 66 69 6e 65 | | define|
|00000540| 73 20 5c 72 61 69 6c 40 | 74 40 49 44 45 4e 54 20 |s \rail@|t@IDENT |
|00000550| 61 73 20 5c 72 61 69 6c | 40 74 65 72 6d 66 6f 6e |as \rail|@termfon|
|00000560| 74 20 49 44 45 4e 54 2e | 0a 25 20 5c 72 61 69 6c |t IDENT.|.% \rail|
|00000570| 74 6f 6b 65 6e 7b 49 44 | 45 4e 54 7d 7b 54 45 58 |token{ID|ENT}{TEX|
|00000580| 54 7d 20 3a 20 66 6f 72 | 6d 61 74 20 49 44 45 4e |T} : for|mat IDEN|
|00000590| 54 20 61 73 20 74 65 72 | 6d 69 6e 61 6c 20 54 45 |T as ter|minal TE|
|000005a0| 58 54 2e 20 77 72 69 74 | 65 73 20 6f 75 74 0a 25 |XT. writ|es out.%|
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 72 61 69 6c | | \rail|
|000005d0| 40 74 7b 49 44 45 4e 54 | 7d 20 74 6f 20 74 68 65 |@t{IDENT|} to the|
|000005e0| 20 2e 72 61 69 20 66 69 | 6c 65 20 61 6e 64 20 64 | .rai fi|le and d|
|000005f0| 65 66 69 6e 65 73 0a 25 | 20 20 20 20 20 20 20 20 |efines.%| |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000610| 20 20 20 5c 72 61 69 6c | 40 74 40 49 44 45 4e 54 | \rail|@t@IDENT|
|00000620| 20 61 73 20 54 45 58 54 | 2e 0a 25 20 5c 72 61 69 | as TEXT|..% \rai|
|00000630| 6c 40 6e 72 20 3a 20 72 | 61 69 6c 72 6f 61 64 20 |l@nr : r|ailroad |
|00000640| 64 69 61 67 72 61 6d 20 | 63 6f 75 6e 74 65 72 2c |diagram |counter,|
|00000650| 20 73 74 61 72 74 73 20 | 61 74 20 31 0a 25 20 5c | starts |at 1.% \|
|00000660| 69 66 72 61 69 6c 40 6d | 61 74 63 68 20 3a 20 63 |ifrail@m|atch : c|
|00000670| 75 72 72 65 6e 74 20 5c | 72 61 69 6c 40 69 7b 4e |urrent \|rail@i{N|
|00000680| 52 7d 7b 54 45 58 54 7d | 20 6d 61 74 63 68 65 73 |R}{TEXT}| matches|
|00000690| 0a 25 20 5c 72 61 69 6c | 40 66 69 72 73 74 20 3a |.% \rail|@first :|
|000006a0| 09 61 63 74 69 6f 6e 73 | 20 74 6f 20 62 65 20 64 |.actions| to be d|
|000006b0| 6f 6e 65 20 66 69 72 73 | 74 2e 20 72 65 61 64 20 |one firs|t. read |
|000006c0| 69 6e 20 2e 72 61 6f 20 | 66 69 6c 65 2c 0a 25 20 |in .rao |file,.% |
|000006d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 70 | | op|
|000006e0| 65 6e 20 2e 72 61 69 20 | 66 69 6c 65 20 69 66 20 |en .rai |file if |
|000006f0| 5c 40 66 69 6c 65 73 77 | 20 74 72 75 65 2c 20 75 |\@filesw| true, u|
|00000700| 6e 64 65 66 69 6e 65 20 | 5c 72 61 69 6c 40 66 69 |ndefine |\rail@fi|
|00000710| 72 73 74 2e 0a 25 20 20 | 20 20 20 20 20 20 20 20 |rst..% | |
|00000720| 20 20 20 20 20 65 78 65 | 63 75 74 65 64 20 66 72 | exe|cuted fr|
|00000730| 6f 6d 20 5c 62 65 67 69 | 6e 7b 72 61 69 6c 7d 20 |om \begi|n{rail} |
|00000740| 61 6e 64 20 5c 72 61 69 | 6c 74 6f 6b 65 6e 2e 0a |and \rai|ltoken..|
|00000750| 25 20 5c 72 61 69 6c 40 | 69 7b 4e 52 7d 7b 54 45 |% \rail@|i{NR}{TE|
|00000760| 58 54 7d 20 3a 20 64 65 | 66 69 6e 65 73 20 5c 72 |XT} : de|fines \r|
|00000770| 61 69 6c 40 69 40 4e 52 | 20 61 73 20 54 45 58 54 |ail@i@NR| as TEXT|
|00000780| 2e 20 77 72 69 74 74 65 | 6e 20 74 6f 20 74 68 65 |. writte|n to the|
|00000790| 20 2e 72 61 69 0a 25 20 | 20 20 20 20 20 20 20 20 | .rai.% | |
|000007a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 69 6c 65 | | file|
|000007b0| 20 62 79 20 5c 72 61 69 | 6c 2c 20 72 65 61 64 20 | by \rai|l, read |
|000007c0| 66 72 6f 6d 20 74 68 65 | 20 2e 72 61 6f 20 66 69 |from the| .rao fi|
|000007d0| 6c 65 20 62 79 0a 25 20 | 20 20 20 20 20 20 20 20 |le by.% | |
|000007e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 72 61 69 | | \rai|
|000007f0| 6c 40 66 69 72 73 74 0a | 25 20 5c 72 61 69 6c 40 |l@first.|% \rail@|
|00000800| 74 7b 49 44 45 4e 54 7d | 20 3a 20 74 65 6c 6c 73 |t{IDENT}| : tells|
|00000810| 20 52 61 69 6c 20 74 68 | 61 74 20 49 44 45 4e 54 | Rail th|at IDENT|
|00000820| 20 69 73 20 74 6f 20 62 | 65 20 63 75 73 74 6f 6d | is to b|e custom|
|00000830| 20 66 6f 72 6d 61 74 74 | 65 64 2c 0a 25 20 20 20 | formatt|ed,.% |
|00000840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 77 | | w|
|00000850| 72 69 74 74 65 6e 20 74 | 6f 20 74 68 65 20 2e 72 |ritten t|o the .r|
|00000860| 61 69 20 66 69 6c 65 20 | 62 79 20 5c 72 61 69 6c |ai file |by \rail|
|00000870| 74 65 72 6d 20 61 6e 64 | 20 5c 72 61 69 6c 74 6f |term and| \railto|
|00000880| 6b 65 6e 2e 0a 25 20 5c | 72 61 69 6c 40 6f 7b 4e |ken..% \|rail@o{N|
|00000890| 52 7d 7b 54 45 58 54 7d | 20 3a 20 64 65 66 69 6e |R}{TEXT}| : defin|
|000008a0| 65 73 20 5c 72 61 69 6c | 40 6f 40 4e 52 20 61 73 |es \rail|@o@NR as|
|000008b0| 20 54 45 58 54 2c 20 72 | 65 61 64 20 66 72 6f 6d | TEXT, r|ead from|
|000008c0| 20 74 68 65 20 2e 72 61 | 6f 0a 25 20 20 20 20 20 | the .ra|o.% |
|000008d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008e0| 66 69 6c 65 20 62 79 20 | 5c 72 61 69 6c 40 66 69 |file by |\rail@fi|
|000008f0| 72 73 74 2e 0a 25 20 5c | 72 61 69 6c 40 70 7b 4f |rst..% \|rail@p{O|
|00000900| 50 54 49 4f 4e 53 7d 20 | 3a 20 70 61 73 73 20 6f |PTIONS} |: pass o|
|00000910| 70 74 69 6f 6e 73 20 74 | 6f 20 72 61 69 6c 2c 20 |ptions t|o rail, |
|00000920| 77 72 69 74 74 65 6e 20 | 74 6f 20 74 68 65 20 2e |written |to the .|
|00000930| 72 61 69 20 66 69 6c 65 | 20 62 79 0a 25 20 20 20 |rai file| by.% |
|00000940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000950| 20 5c 72 61 69 6c 6f 70 | 74 69 6f 6e 73 0a 25 20 | \railop|tions.% |
|00000960| 5c 72 61 69 6c 40 77 61 | 72 6e 20 3a 20 77 61 72 |\rail@wa|rn : war|
|00000970| 6e 20 75 73 65 72 20 66 | 6f 72 20 6d 69 73 6d 61 |n user f|or misma|
|00000980| 74 63 68 69 6e 67 20 64 | 69 61 67 72 61 6d 73 0a |tching d|iagrams.|
|00000990| 25 20 5c 72 61 69 6c 40 | 65 6e 64 77 61 72 6e 20 |% \rail@|endwarn |
|000009a0| 3a 20 65 69 74 68 65 72 | 20 5c 72 65 6c 61 78 20 |: either| \relax |
|000009b0| 6f 72 20 5c 72 61 69 6c | 40 77 61 72 6e 0a 25 20 |or \rail|@warn.% |
|000009c0| 5c 72 61 69 6c 40 65 6e | 64 64 6f 63 75 6d 65 6e |\rail@en|ddocumen|
|000009d0| 74 20 3a 20 6f 72 69 67 | 69 6e 61 6c 20 5c 65 6e |t : orig|inal \en|
|000009e0| 64 64 6f 63 75 6d 65 6e | 74 0a 25 20 5c 65 6e 64 |ddocumen|t.% \end|
|000009f0| 64 6f 63 75 6d 65 6e 74 | 20 3a 20 63 68 65 63 6b |document| : check|
|00000a00| 73 20 5c 69 66 72 61 69 | 6c 40 61 6c 6c 0a 5c 6e |s \ifrai|l@all.\n|
|00000a10| 65 77 63 6f 75 6e 74 5c | 72 61 69 6c 40 6e 72 0a |ewcount\|rail@nr.|
|00000a20| 5c 72 61 69 6c 40 6e 72 | 3d 31 0a 5c 6e 65 77 69 |\rail@nr|=1.\newi|
|00000a30| 66 5c 69 66 72 61 69 6c | 40 61 6c 6c 0a 5c 72 61 |f\ifrail|@all.\ra|
|00000a40| 69 6c 40 61 6c 6c 74 72 | 75 65 0a 5c 6e 65 77 69 |il@alltr|ue.\newi|
|00000a50| 66 5c 69 66 72 61 69 6c | 40 6d 61 74 63 68 0a 5c |f\ifrail|@match.\|
|00000a60| 64 65 66 5c 72 61 69 6c | 40 66 69 72 73 74 7b 0a |def\rail|@first{.|
|00000a70| 5c 6d 61 6b 65 61 74 6c | 65 74 74 65 72 0a 5c 40 |\makeatl|etter.\@|
|00000a80| 69 6e 70 75 74 7b 5c 6a | 6f 62 6e 61 6d 65 2e 72 |input{\j|obname.r|
|00000a90| 61 6f 7d 0a 5c 6d 61 6b | 65 61 74 6f 74 68 65 72 |ao}.\mak|eatother|
|00000aa0| 0a 5c 69 66 40 66 69 6c | 65 73 77 0a 5c 6e 65 77 |.\if@fil|esw.\new|
|00000ab0| 77 72 69 74 65 5c 74 66 | 40 72 61 69 0a 5c 69 6d |write\tf|@rai.\im|
|00000ac0| 6d 65 64 69 61 74 65 5c | 6f 70 65 6e 6f 75 74 5c |mediate\|openout\|
|00000ad0| 74 66 40 72 61 69 5c 6a | 6f 62 6e 61 6d 65 2e 72 |tf@rai\j|obname.r|
|00000ae0| 61 69 5c 72 65 6c 61 78 | 0a 5c 67 6c 6f 62 61 6c |ai\relax|.\global|
|00000af0| 5c 6c 65 74 5c 72 61 69 | 6c 40 66 69 72 73 74 3d |\let\rai|l@first=|
|00000b00| 5c 72 65 6c 61 78 0a 5c | 6c 6f 6e 67 5c 64 65 66 |\relax.\|long\def|
|00000b10| 5c 72 61 69 6c 23 31 5c | 65 6e 64 23 32 7b 0a 5c |\rail#1\|end#2{.\|
|00000b20| 65 6e 64 7b 23 32 7d 0a | 5c 72 61 69 6c 40 66 69 |end{#2}.|\rail@fi|
|00000b30| 72 73 74 0a 5c 62 65 67 | 69 6e 67 72 6f 75 70 0a |rst.\beg|ingroup.|
|00000b40| 5c 6c 65 74 5c 5c 3d 5c | 72 65 6c 61 78 0a 5c 67 |\let\\=\|relax.\g|
|00000b50| 6c 6f 62 61 6c 5c 65 64 | 65 66 5c 72 61 69 6c 40 |lobal\ed|ef\rail@|
|00000b60| 69 40 7b 23 31 7d 0a 5c | 65 6e 64 67 72 6f 75 70 |i@{#1}.\|endgroup|
|00000b70| 0a 5c 40 69 66 75 6e 64 | 65 66 69 6e 65 64 7b 74 |.\@ifund|efined{t|
|00000b80| 66 40 72 61 69 7d 7b 7d | 7b 0a 5c 62 65 67 69 6e |f@rai}{}|{.\begin|
|00000b90| 67 72 6f 75 70 0a 5c 6c | 65 74 5c 5c 3d 5c 72 65 |group.\l|et\\=\re|
|00000ba0| 6c 61 78 0a 5c 69 6d 6d | 65 64 69 61 74 65 5c 77 |lax.\imm|ediate\w|
|00000bb0| 72 69 74 65 5c 74 66 40 | 72 61 69 7b 5c 6e 6f 65 |rite\tf@|rai{\noe|
|00000bc0| 78 70 61 6e 64 5c 72 61 | 69 6c 40 69 7b 5c 6e 75 |xpand\ra|il@i{\nu|
|00000bd0| 6d 62 65 72 5c 72 61 69 | 6c 40 6e 72 7d 7b 5c 72 |mber\rai|l@nr}{\r|
|00000be0| 61 69 6c 40 69 40 7d 7d | 0a 5c 65 6e 64 67 72 6f |ail@i@}}|.\endgro|
|00000bf0| 75 70 0a 5c 72 61 69 6c | 40 6d 61 74 63 68 74 72 |up.\rail|@matchtr|
|00000c00| 75 65 0a 5c 40 69 66 75 | 6e 64 65 66 69 6e 65 64 |ue.\@ifu|ndefined|
|00000c10| 7b 72 61 69 6c 40 6f 40 | 5c 6e 75 6d 62 65 72 5c |{rail@o@|\number\|
|00000c20| 72 61 69 6c 40 6e 72 7d | 7b 5c 72 61 69 6c 40 6d |rail@nr}|{\rail@m|
|00000c30| 61 74 63 68 66 61 6c 73 | 65 7d 7b 7d 0a 5c 65 78 |atchfals|e}{}.\ex|
|00000c40| 70 61 6e 64 61 66 74 65 | 72 5c 69 66 78 5c 63 73 |pandafte|r\ifx\cs|
|00000c50| 6e 61 6d 65 20 72 61 69 | 6c 40 69 40 5c 6e 75 6d |name rai|l@i@\num|
|00000c60| 62 65 72 5c 72 61 69 6c | 40 6e 72 5c 65 6e 64 63 |ber\rail|@nr\endc|
|00000c70| 73 6e 61 6d 65 5c 72 61 | 69 6c 40 69 40 0a 5c 65 |sname\ra|il@i@.\e|
|00000c80| 6c 73 65 0a 5c 72 61 69 | 6c 40 6d 61 74 63 68 66 |lse.\rai|l@matchf|
|00000c90| 61 6c 73 65 0a 5c 69 66 | 72 61 69 6c 40 6d 61 74 |alse.\if|rail@mat|
|00000ca0| 63 68 0a 5c 65 78 70 61 | 6e 64 61 66 74 65 72 5c |ch.\expa|ndafter\|
|00000cb0| 72 65 6c 61 78 5c 63 73 | 6e 61 6d 65 20 72 61 69 |relax\cs|name rai|
|00000cc0| 6c 40 6f 40 5c 6e 75 6d | 62 65 72 5c 72 61 69 6c |l@o@\num|ber\rail|
|00000cd0| 40 6e 72 5c 65 6e 64 63 | 73 6e 61 6d 65 0a 5c 65 |@nr\endc|sname.\e|
|00000ce0| 6c 73 65 0a 5c 40 77 61 | 72 6e 69 6e 67 7b 52 61 |lse.\@wa|rning{Ra|
|00000cf0| 69 6c 72 6f 61 64 20 64 | 69 61 67 72 61 6d 20 7b |ilroad d|iagram {|
|00000d00| 5c 6e 75 6d 62 65 72 5c | 72 61 69 6c 40 6e 72 7d |\number\|rail@nr}|
|00000d10| 20 64 6f 65 73 6e 27 74 | 20 6d 61 74 63 68 7d 0a | doesn't| match}.|
|00000d20| 5c 67 6c 6f 62 61 6c 5c | 6c 65 74 5c 72 61 69 6c |\global\|let\rail|
|00000d30| 40 65 6e 64 77 61 72 6e | 3d 5c 72 61 69 6c 40 77 |@endwarn|=\rail@w|
|00000d40| 61 72 6e 0a 5c 72 61 69 | 6c 40 62 65 67 69 6e 7b |arn.\rai|l@begin{|
|00000d50| 31 7d 7b 7d 0a 5c 72 61 | 69 6c 40 73 65 74 62 6f |1}{}.\ra|il@setbo|
|00000d60| 78 7b 5c 62 66 20 3f 3f | 3f 7d 0a 5c 72 61 69 6c |x{\bf ??|?}.\rail|
|00000d70| 40 6f 76 61 6c 0a 5c 72 | 61 69 6c 40 65 6e 64 0a |@oval.\r|ail@end.|
|00000d80| 5c 67 6c 6f 62 61 6c 5c | 61 64 76 61 6e 63 65 5c |\global\|advance\|
|00000d90| 72 61 69 6c 40 6e 72 20 | 62 79 20 31 0a 5c 64 65 |rail@nr |by 1.\de|
|00000da0| 66 5c 72 61 69 6c 6f 70 | 74 69 6f 6e 73 23 31 7b |f\railop|tions#1{|
|00000db0| 0a 5c 72 61 69 6c 40 66 | 69 72 73 74 0a 5c 40 77 |.\rail@f|irst.\@w|
|00000dc0| 72 69 74 65 66 69 6c 65 | 7b 72 61 69 7d 7b 5c 6e |ritefile|{rai}{\n|
|00000dd0| 6f 65 78 70 61 6e 64 5c | 72 61 69 6c 40 70 7b 23 |oexpand\|rail@p{#|
|00000de0| 31 7d 7d 0a 5c 64 65 66 | 5c 72 61 69 6c 74 65 72 |1}}.\def|\railter|
|00000df0| 6d 23 31 7b 0a 5c 72 61 | 69 6c 40 66 69 72 73 74 |m#1{.\ra|il@first|
|00000e00| 0a 5c 40 66 6f 72 5c 72 | 61 69 6c 40 69 40 3a 3d |.\@for\r|ail@i@:=|
|00000e10| 23 31 5c 64 6f 7b 0a 5c | 40 77 72 69 74 65 66 69 |#1\do{.\|@writefi|
|00000e20| 6c 65 7b 72 61 69 7d 7b | 5c 6e 6f 65 78 70 61 6e |le{rai}{|\noexpan|
|00000e30| 64 5c 72 61 69 6c 40 74 | 7b 5c 72 61 69 6c 40 69 |d\rail@t|{\rail@i|
|00000e40| 40 7d 7d 0a 5c 64 65 66 | 5c 72 61 69 6c 74 6f 6b |@}}.\def|\railtok|
|00000e50| 65 6e 23 31 23 32 7b 0a | 5c 72 61 69 6c 40 66 69 |en#1#2{.|\rail@fi|
|00000e60| 72 73 74 0a 5c 40 77 72 | 69 74 65 66 69 6c 65 7b |rst.\@wr|itefile{|
|00000e70| 72 61 69 7d 7b 5c 6e 6f | 65 78 70 61 6e 64 5c 72 |rai}{\no|expand\r|
|00000e80| 61 69 6c 40 74 7b 23 31 | 7d 7d 0a 5c 65 78 70 61 |ail@t{#1|}}.\expa|
|00000e90| 6e 64 61 66 74 65 72 5c | 64 65 66 5c 63 73 6e 61 |ndafter\|def\csna|
|00000ea0| 6d 65 20 72 61 69 6c 40 | 74 40 23 31 5c 65 6e 64 |me rail@|t@#1\end|
|00000eb0| 63 73 6e 61 6d 65 7b 23 | 32 7d 0a 5c 6c 6f 6e 67 |csname{#|2}.\long|
|00000ec0| 5c 64 65 66 5c 72 61 69 | 6c 40 69 23 31 23 32 7b |\def\rai|l@i#1#2{|
|00000ed0| 0a 5c 65 78 70 61 6e 64 | 61 66 74 65 72 5c 67 64 |.\expand|after\gd|
|00000ee0| 65 66 5c 63 73 6e 61 6d | 65 20 72 61 69 6c 40 69 |ef\csnam|e rail@i|
|00000ef0| 40 23 31 5c 65 6e 64 63 | 73 6e 61 6d 65 7b 23 32 |@#1\endc|sname{#2|
|00000f00| 7d 0a 5c 64 65 66 5c 72 | 61 69 6c 40 6f 23 31 23 |}.\def\r|ail@o#1#|
|00000f10| 32 7b 0a 5c 65 78 70 61 | 6e 64 61 66 74 65 72 5c |2{.\expa|ndafter\|
|00000f20| 67 64 65 66 5c 63 73 6e | 61 6d 65 20 72 61 69 6c |gdef\csn|ame rail|
|00000f30| 40 6f 40 23 31 5c 65 6e | 64 63 73 6e 61 6d 65 7b |@o@#1\en|dcsname{|
|00000f40| 23 32 7d 0a 5c 64 65 66 | 5c 72 61 69 6c 40 74 23 |#2}.\def|\rail@t#|
|00000f50| 31 7b 7d 0a 5c 64 65 66 | 5c 72 61 69 6c 40 70 23 |1{}.\def|\rail@p#|
|00000f60| 31 7b 7d 0a 5c 64 65 66 | 5c 72 61 69 6c 40 77 61 |1{}.\def|\rail@wa|
|00000f70| 72 6e 7b 0a 5c 40 77 61 | 72 6e 69 6e 67 7b 52 61 |rn{.\@wa|rning{Ra|
|00000f80| 69 6c 72 6f 61 64 20 64 | 69 61 67 72 61 6d 28 73 |ilroad d|iagram(s|
|00000f90| 29 20 6d 61 79 20 68 61 | 76 65 20 63 68 61 6e 67 |) may ha|ve chang|
|00000fa0| 65 64 2e 20 55 73 65 20 | 27 72 61 69 6c 27 20 61 |ed. Use |'rail' a|
|00000fb0| 6e 64 20 72 65 72 75 6e | 7d 0a 5c 6c 65 74 5c 72 |nd rerun|}.\let\r|
|00000fc0| 61 69 6c 40 65 6e 64 77 | 61 72 6e 3d 5c 72 65 6c |ail@endw|arn=\rel|
|00000fd0| 61 78 0a 5c 6c 65 74 5c | 72 61 69 6c 40 65 6e 64 |ax.\let\|rail@end|
|00000fe0| 64 6f 63 75 6d 65 6e 74 | 3d 5c 65 6e 64 64 6f 63 |document|=\enddoc|
|00000ff0| 75 6d 65 6e 74 0a 5c 64 | 65 66 5c 65 6e 64 64 6f |ument.\d|ef\enddo|
|00001000| 63 75 6d 65 6e 74 7b 0a | 5c 72 61 69 6c 40 65 6e |cument{.|\rail@en|
|00001010| 64 77 61 72 6e 0a 5c 72 | 61 69 6c 40 65 6e 64 64 |dwarn.\r|ail@endd|
|00001020| 6f 63 75 6d 65 6e 74 0a | 25 20 69 6e 64 65 78 20 |ocument.|% index |
|00001030| 65 6e 74 72 79 20 6d 61 | 63 72 6f 0a 25 20 5c 72 |entry ma|cro.% \r|
|00001040| 61 69 6c 40 69 6e 64 65 | 78 7b 49 44 45 4e 54 7d |ail@inde|x{IDENT}|
|00001050| 20 3a 20 61 64 64 20 69 | 6e 64 65 78 20 65 6e 74 | : add i|ndex ent|
|00001060| 72 79 20 66 6f 72 20 49 | 44 45 4e 54 0a 5c 64 65 |ry for I|DENT.\de|
|00001070| 66 5c 72 61 69 6c 40 69 | 6e 64 65 78 23 31 7b 0a |f\rail@i|ndex#1{.|
|00001080| 5c 69 6e 64 65 78 7b 5c | 72 61 69 6c 40 69 6e 64 |\index{\|rail@ind|
|00001090| 65 78 66 6f 6e 74 23 31 | 7d 0a 25 20 72 61 69 6c |exfont#1|}.% rail|
|000010a0| 72 6f 61 64 20 64 69 61 | 67 72 61 6d 20 66 6f 72 |road dia|gram for|
|000010b0| 6d 61 74 74 69 6e 67 20 | 70 61 72 61 6d 65 74 65 |matting |paramete|
|000010c0| 72 73 20 28 75 73 65 72 | 20 6c 65 76 65 6c 29 0a |rs (user| level).|
|000010d0| 25 20 61 6c 6c 20 6f 66 | 20 74 68 65 73 65 20 61 |% all of| these a|
|000010e0| 72 65 20 63 6f 70 69 65 | 64 20 69 6e 74 6f 20 74 |re copie|d into t|
|000010f0| 68 65 69 72 20 69 6e 74 | 65 72 6e 61 6c 20 76 65 |heir int|ernal ve|
|00001100| 72 73 69 6f 6e 73 20 62 | 79 20 5c 72 61 69 6c 69 |rsions b|y \raili|
|00001110| 6e 69 74 0a 25 20 5c 72 | 61 69 6c 75 6e 69 74 20 |nit.% \r|ailunit |
|00001120| 3a 20 5c 75 6e 69 74 6c | 65 6e 67 74 68 20 77 69 |: \unitl|ength wi|
|00001130| 74 68 69 6e 20 72 61 69 | 6c 72 6f 61 64 20 64 69 |thin rai|lroad di|
|00001140| 61 67 72 61 6d 73 0a 25 | 20 5c 72 61 69 6c 65 78 |agrams.%| \railex|
|00001150| 74 72 61 20 3a 20 65 78 | 74 72 61 20 6c 65 6e 67 |tra : ex|tra leng|
|00001160| 74 68 20 61 74 20 6f 75 | 74 73 69 64 65 20 6f 66 |th at ou|tside of|
|00001170| 20 64 69 61 67 72 61 6d | 0a 25 20 5c 72 61 69 6c | diagram|.% \rail|
|00001180| 62 6f 78 68 65 69 67 68 | 74 20 3a 20 68 65 69 67 |boxheigh|t : heig|
|00001190| 68 74 20 6f 66 20 6f 76 | 61 6c 73 20 61 6e 64 20 |ht of ov|als and |
|000011a0| 66 72 61 6d 65 73 0a 25 | 20 5c 72 61 69 6c 62 6f |frames.%| \railbo|
|000011b0| 78 73 6b 69 70 20 3a 20 | 76 65 72 74 69 63 61 6c |xskip : |vertical|
|000011c0| 20 73 70 61 63 65 20 62 | 65 74 77 65 65 6e 20 6c | space b|etween l|
|000011d0| 69 6e 65 73 0a 25 20 5c | 72 61 69 6c 62 6f 78 6c |ines.% \|railboxl|
|000011e0| 65 66 74 20 3a 20 73 70 | 61 63 65 20 74 6f 20 74 |eft : sp|ace to t|
|000011f0| 68 65 20 6c 65 66 74 20 | 6f 66 20 61 20 62 6f 78 |he left |of a box|
|00001200| 0a 25 20 5c 72 61 69 6c | 62 6f 78 72 69 67 68 74 |.% \rail|boxright|
|00001210| 20 3a 20 73 70 61 63 65 | 20 74 6f 20 74 68 65 20 | : space| to the |
|00001220| 72 69 67 68 74 20 6f 66 | 20 61 20 62 6f 78 0a 25 |right of| a box.%|
|00001230| 20 5c 72 61 69 6c 6f 76 | 61 6c 73 70 61 63 65 20 | \railov|alspace |
|00001240| 3a 20 65 78 74 72 61 20 | 73 70 61 63 65 20 61 72 |: extra |space ar|
|00001250| 6f 75 6e 64 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 |ound con|tents of|
|00001260| 20 6f 76 61 6c 0a 25 20 | 5c 72 61 69 6c 66 72 61 | oval.% |\railfra|
|00001270| 6d 65 73 70 61 63 65 20 | 3a 20 65 78 74 72 61 20 |mespace |: extra |
|00001280| 73 70 61 63 65 20 61 72 | 6f 75 6e 64 20 63 6f 6e |space ar|ound con|
|00001290| 74 65 6e 74 73 20 6f 66 | 20 66 72 61 6d 65 0a 25 |tents of| frame.%|
|000012a0| 20 5c 72 61 69 6c 74 65 | 78 74 6c 65 66 74 20 3a | \railte|xtleft :|
|000012b0| 20 73 70 61 63 65 20 74 | 6f 20 74 68 65 20 6c 65 | space t|o the le|
|000012c0| 66 74 20 6f 66 20 74 65 | 78 74 0a 25 20 5c 72 61 |ft of te|xt.% \ra|
|000012d0| 69 6c 74 65 78 74 72 69 | 67 68 74 20 3a 20 73 70 |iltextri|ght : sp|
|000012e0| 61 63 65 20 74 6f 20 74 | 68 65 20 72 69 67 68 74 |ace to t|he right|
|000012f0| 20 6f 66 20 74 65 78 74 | 0a 25 20 5c 72 61 69 6c | of text|.% \rail|
|00001300| 74 65 78 74 75 70 20 3a | 20 73 70 61 63 65 20 74 |textup :| space t|
|00001310| 6f 20 6c 69 66 74 20 74 | 65 78 74 20 75 70 0a 25 |o lift t|ext up.%|
|00001320| 20 5c 72 61 69 6c 6a 6f | 69 6e 73 69 7a 65 20 3a | \railjo|insize :|
|00001330| 20 63 69 72 63 6c 65 20 | 73 69 7a 65 20 6f 66 20 | circle |size of |
|00001340| 6a 6f 69 6e 2f 73 70 6c | 69 74 20 61 72 63 73 0a |join/spl|it arcs.|
|00001350| 25 20 5c 72 61 69 6c 6a | 6f 69 6e 61 64 6a 75 73 |% \railj|oinadjus|
|00001360| 74 20 3a 20 73 70 61 63 | 65 20 74 6f 20 61 64 6a |t : spac|e to adj|
|00001370| 75 73 74 20 6a 6f 69 6e | 0a 25 20 5c 72 61 69 6c |ust join|.% \rail|
|00001380| 6e 61 6d 65 73 65 70 20 | 3a 20 73 65 70 61 72 61 |namesep |: separa|
|00001390| 74 6f 72 20 62 65 74 77 | 65 65 6e 20 6e 61 6d 65 |tor betw|een name|
|000013a0| 20 61 6e 64 20 72 75 6c | 65 20 62 6f 64 79 0a 5c | and rul|e body.\|
|000013b0| 6e 65 77 64 69 6d 65 6e | 5c 72 61 69 6c 75 6e 69 |newdimen|\railuni|
|000013c0| 74 0a 5c 6e 65 77 64 69 | 6d 65 6e 5c 72 61 69 6c |t.\newdi|men\rail|
|000013d0| 65 78 74 72 61 0a 5c 6e | 65 77 64 69 6d 65 6e 5c |extra.\n|ewdimen\|
|000013e0| 72 61 69 6c 62 6f 78 68 | 65 69 67 68 74 0a 5c 6e |railboxh|eight.\n|
|000013f0| 65 77 64 69 6d 65 6e 5c | 72 61 69 6c 62 6f 78 73 |ewdimen\|railboxs|
|00001400| 6b 69 70 0a 5c 6e 65 77 | 64 69 6d 65 6e 5c 72 61 |kip.\new|dimen\ra|
|00001410| 69 6c 62 6f 78 6c 65 66 | 74 0a 5c 6e 65 77 64 69 |ilboxlef|t.\newdi|
|00001420| 6d 65 6e 5c 72 61 69 6c | 62 6f 78 72 69 67 68 74 |men\rail|boxright|
|00001430| 0a 5c 6e 65 77 64 69 6d | 65 6e 5c 72 61 69 6c 6f |.\newdim|en\railo|
|00001440| 76 61 6c 73 70 61 63 65 | 0a 5c 6e 65 77 64 69 6d |valspace|.\newdim|
|00001450| 65 6e 5c 72 61 69 6c 66 | 72 61 6d 65 73 70 61 63 |en\railf|ramespac|
|00001460| 65 0a 5c 6e 65 77 64 69 | 6d 65 6e 5c 72 61 69 6c |e.\newdi|men\rail|
|00001470| 74 65 78 74 6c 65 66 74 | 0a 5c 6e 65 77 64 69 6d |textleft|.\newdim|
|00001480| 65 6e 5c 72 61 69 6c 74 | 65 78 74 72 69 67 68 74 |en\railt|extright|
|00001490| 0a 5c 6e 65 77 64 69 6d | 65 6e 5c 72 61 69 6c 74 |.\newdim|en\railt|
|000014a0| 65 78 74 75 70 0a 5c 6e | 65 77 64 69 6d 65 6e 5c |extup.\n|ewdimen\|
|000014b0| 72 61 69 6c 6a 6f 69 6e | 73 69 7a 65 0a 5c 6e 65 |railjoin|size.\ne|
|000014c0| 77 64 69 6d 65 6e 5c 72 | 61 69 6c 6a 6f 69 6e 61 |wdimen\r|ailjoina|
|000014d0| 64 6a 75 73 74 0a 5c 6e | 65 77 64 69 6d 65 6e 5c |djust.\n|ewdimen\|
|000014e0| 72 61 69 6c 6e 61 6d 65 | 73 65 70 0a 25 20 69 6e |railname|sep.% in|
|000014f0| 74 65 72 6e 61 6c 20 76 | 65 72 73 69 6f 6e 73 20 |ternal v|ersions |
|00001500| 6f 66 20 74 68 65 20 66 | 6f 72 6d 61 74 74 69 6e |of the f|ormattin|
|00001510| 67 20 70 61 72 61 6d 65 | 74 65 72 73 0a 25 20 5c |g parame|ters.% \|
|00001520| 72 61 69 6c 40 65 78 74 | 72 61 20 20 20 3a 20 5c |rail@ext|ra : \|
|00001530| 72 61 69 6c 65 78 74 72 | 61 0a 25 20 5c 72 61 69 |railextr|a.% \rai|
|00001540| 6c 40 62 6f 78 68 74 20 | 20 20 3a 20 5c 72 61 69 |l@boxht | : \rai|
|00001550| 6c 62 6f 78 68 65 69 67 | 68 74 0a 25 20 5c 72 61 |lboxheig|ht.% \ra|
|00001560| 69 6c 40 62 6f 78 73 70 | 20 20 20 3a 20 5c 72 61 |il@boxsp| : \ra|
|00001570| 69 6c 62 6f 78 73 6b 69 | 70 0a 25 20 5c 72 61 69 |ilboxski|p.% \rai|
|00001580| 6c 40 62 6f 78 6c 66 20 | 20 20 3a 20 5c 72 61 69 |l@boxlf | : \rai|
|00001590| 6c 62 6f 78 6c 65 66 74 | 0a 25 20 5c 72 61 69 6c |lboxleft|.% \rail|
|000015a0| 40 62 6f 78 72 74 20 20 | 20 3a 20 5c 72 61 69 6c |@boxrt | : \rail|
|000015b0| 62 6f 78 72 69 67 68 74 | 0a 25 20 5c 72 61 69 6c |boxright|.% \rail|
|000015c0| 40 62 6f 78 68 68 74 20 | 20 3a 20 5c 72 61 69 6c |@boxhht | : \rail|
|000015d0| 62 6f 78 68 65 69 67 68 | 74 20 2f 20 32 0a 25 20 |boxheigh|t / 2.% |
|000015e0| 5c 72 61 69 6c 40 6f 76 | 61 6c 73 70 20 20 3a 20 |\rail@ov|alsp : |
|000015f0| 5c 72 61 69 6c 6f 76 61 | 6c 73 70 61 63 65 0a 25 |\railova|lspace.%|
|00001600| 20 5c 72 61 69 6c 40 66 | 72 61 6d 65 73 70 20 3a | \rail@f|ramesp :|
|00001610| 20 5c 72 61 69 6c 66 72 | 61 6d 65 73 70 61 63 65 | \railfr|amespace|
|00001620| 0a 25 20 5c 72 61 69 6c | 40 74 65 78 74 6c 66 09 |.% \rail|@textlf.|
|00001630| 3a 20 5c 72 61 69 6c 74 | 65 78 74 6c 65 66 74 0a |: \railt|extleft.|
|00001640| 25 20 5c 72 61 69 6c 40 | 74 65 78 74 72 74 09 3a |% \rail@|textrt.:|
|00001650| 20 5c 72 61 69 6c 74 65 | 78 74 72 69 67 68 74 0a | \railte|xtright.|
|00001660| 25 20 5c 72 61 69 6c 40 | 74 65 78 74 75 70 09 3a |% \rail@|textup.:|
|00001670| 20 5c 72 61 69 6c 74 65 | 78 74 75 70 0a 25 20 5c | \railte|xtup.% \|
|00001680| 72 61 69 6c 40 6a 6f 69 | 6e 73 7a 20 20 3a 20 5c |rail@joi|nsz : \|
|00001690| 72 61 69 6c 6a 6f 69 6e | 73 69 7a 65 0a 25 20 5c |railjoin|size.% \|
|000016a0| 72 61 69 6c 40 6a 6f 69 | 6e 68 73 7a 20 3a 20 5c |rail@joi|nhsz : \|
|000016b0| 72 61 69 6c 6a 6f 69 6e | 73 69 7a 65 20 2f 20 32 |railjoin|size / 2|
|000016c0| 0a 25 20 5c 72 61 69 6c | 40 6a 6f 69 6e 61 64 6a |.% \rail|@joinadj|
|000016d0| 20 3a 20 5c 72 61 69 6c | 6a 6f 69 6e 61 64 6a 75 | : \rail|joinadju|
|000016e0| 73 74 0a 25 20 5c 72 61 | 69 6c 69 6e 69 74 20 3a |st.% \ra|ilinit :|
|000016f0| 20 69 6e 74 65 72 6e 61 | 6c 69 7a 65 20 61 6c 6c | interna|lize all|
|00001700| 20 6f 66 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 | of the |paramete|
|00001710| 72 73 2e 0a 5c 6e 65 77 | 63 6f 75 6e 74 5c 72 61 |rs..\new|count\ra|
|00001720| 69 6c 40 65 78 74 72 61 | 0a 5c 6e 65 77 63 6f 75 |il@extra|.\newcou|
|00001730| 6e 74 5c 72 61 69 6c 40 | 62 6f 78 68 74 0a 5c 6e |nt\rail@|boxht.\n|
|00001740| 65 77 63 6f 75 6e 74 5c | 72 61 69 6c 40 62 6f 78 |ewcount\|rail@box|
|00001750| 73 70 0a 5c 6e 65 77 63 | 6f 75 6e 74 5c 72 61 69 |sp.\newc|ount\rai|
|00001760| 6c 40 62 6f 78 6c 66 0a | 5c 6e 65 77 63 6f 75 6e |l@boxlf.|\newcoun|
|00001770| 74 5c 72 61 69 6c 40 62 | 6f 78 72 74 0a 5c 6e 65 |t\rail@b|oxrt.\ne|
|00001780| 77 63 6f 75 6e 74 5c 72 | 61 69 6c 40 62 6f 78 68 |wcount\r|ail@boxh|
|00001790| 68 74 0a 5c 6e 65 77 63 | 6f 75 6e 74 5c 72 61 69 |ht.\newc|ount\rai|
|000017a0| 6c 40 6f 76 61 6c 73 70 | 0a 5c 6e 65 77 63 6f 75 |l@ovalsp|.\newcou|
|000017b0| 6e 74 5c 72 61 69 6c 40 | 66 72 61 6d 65 73 70 0a |nt\rail@|framesp.|
|000017c0| 5c 6e 65 77 63 6f 75 6e | 74 5c 72 61 69 6c 40 74 |\newcoun|t\rail@t|
|000017d0| 65 78 74 6c 66 0a 5c 6e | 65 77 63 6f 75 6e 74 5c |extlf.\n|ewcount\|
|000017e0| 72 61 69 6c 40 74 65 78 | 74 72 74 0a 5c 6e 65 77 |rail@tex|trt.\new|
|000017f0| 63 6f 75 6e 74 5c 72 61 | 69 6c 40 74 65 78 74 75 |count\ra|il@textu|
|00001800| 70 0a 5c 6e 65 77 63 6f | 75 6e 74 5c 72 61 69 6c |p.\newco|unt\rail|
|00001810| 40 6a 6f 69 6e 73 7a 0a | 5c 6e 65 77 63 6f 75 6e |@joinsz.|\newcoun|
|00001820| 74 5c 72 61 69 6c 40 6a | 6f 69 6e 68 73 7a 0a 5c |t\rail@j|oinhsz.\|
|00001830| 6e 65 77 63 6f 75 6e 74 | 5c 72 61 69 6c 40 6a 6f |newcount|\rail@jo|
|00001840| 69 6e 61 64 6a 0a 5c 64 | 65 66 5c 72 61 69 6c 69 |inadj.\d|ef\raili|
|00001850| 6e 69 74 7b 0a 5c 72 61 | 69 6c 40 65 78 74 72 61 |nit{.\ra|il@extra|
|00001860| 3d 5c 72 61 69 6c 65 78 | 74 72 61 0a 5c 64 69 76 |=\railex|tra.\div|
|00001870| 69 64 65 5c 72 61 69 6c | 40 65 78 74 72 61 20 62 |ide\rail|@extra b|
|00001880| 79 20 5c 72 61 69 6c 75 | 6e 69 74 0a 5c 72 61 69 |y \railu|nit.\rai|
|00001890| 6c 40 62 6f 78 68 74 3d | 5c 72 61 69 6c 62 6f 78 |l@boxht=|\railbox|
|000018a0| 68 65 69 67 68 74 0a 5c | 64 69 76 69 64 65 5c 72 |height.\|divide\r|
|000018b0| 61 69 6c 40 62 6f 78 68 | 74 20 62 79 20 5c 72 61 |ail@boxh|t by \ra|
|000018c0| 69 6c 75 6e 69 74 0a 5c | 72 61 69 6c 40 62 6f 78 |ilunit.\|rail@box|
|000018d0| 73 70 3d 5c 72 61 69 6c | 62 6f 78 73 6b 69 70 0a |sp=\rail|boxskip.|
|000018e0| 5c 64 69 76 69 64 65 5c | 72 61 69 6c 40 62 6f 78 |\divide\|rail@box|
|000018f0| 73 70 20 62 79 20 5c 72 | 61 69 6c 75 6e 69 74 0a |sp by \r|ailunit.|
|00001900| 5c 72 61 69 6c 40 62 6f | 78 6c 66 3d 5c 72 61 69 |\rail@bo|xlf=\rai|
|00001910| 6c 62 6f 78 6c 65 66 74 | 0a 5c 64 69 76 69 64 65 |lboxleft|.\divide|
|00001920| 5c 72 61 69 6c 40 62 6f | 78 6c 66 20 62 79 20 5c |\rail@bo|xlf by \|
|00001930| 72 61 69 6c 75 6e 69 74 | 0a 5c 72 61 69 6c 40 62 |railunit|.\rail@b|
|00001940| 6f 78 72 74 3d 5c 72 61 | 69 6c 62 6f 78 72 69 67 |oxrt=\ra|ilboxrig|
|00001950| 68 74 0a 5c 64 69 76 69 | 64 65 5c 72 61 69 6c 40 |ht.\divi|de\rail@|
|00001960| 62 6f 78 72 74 20 62 79 | 20 5c 72 61 69 6c 75 6e |boxrt by| \railun|
|00001970| 69 74 0a 5c 72 61 69 6c | 40 62 6f 78 68 68 74 3d |it.\rail|@boxhht=|
|00001980| 5c 72 61 69 6c 62 6f 78 | 68 65 69 67 68 74 0a 5c |\railbox|height.\|
|00001990| 64 69 76 69 64 65 5c 72 | 61 69 6c 40 62 6f 78 68 |divide\r|ail@boxh|
|000019a0| 68 74 20 62 79 20 5c 72 | 61 69 6c 75 6e 69 74 0a |ht by \r|ailunit.|
|000019b0| 5c 64 69 76 69 64 65 5c | 72 61 69 6c 40 62 6f 78 |\divide\|rail@box|
|000019c0| 68 68 74 20 62 79 20 32 | 0a 5c 72 61 69 6c 40 6f |hht by 2|.\rail@o|
|000019d0| 76 61 6c 73 70 3d 5c 72 | 61 69 6c 6f 76 61 6c 73 |valsp=\r|ailovals|
|000019e0| 70 61 63 65 0a 5c 64 69 | 76 69 64 65 5c 72 61 69 |pace.\di|vide\rai|
|000019f0| 6c 40 6f 76 61 6c 73 70 | 20 62 79 20 5c 72 61 69 |l@ovalsp| by \rai|
|00001a00| 6c 75 6e 69 74 0a 5c 72 | 61 69 6c 40 66 72 61 6d |lunit.\r|ail@fram|
|00001a10| 65 73 70 3d 5c 72 61 69 | 6c 66 72 61 6d 65 73 70 |esp=\rai|lframesp|
|00001a20| 61 63 65 0a 5c 64 69 76 | 69 64 65 5c 72 61 69 6c |ace.\div|ide\rail|
|00001a30| 40 66 72 61 6d 65 73 70 | 20 62 79 20 5c 72 61 69 |@framesp| by \rai|
|00001a40| 6c 75 6e 69 74 0a 5c 72 | 61 69 6c 40 74 65 78 74 |lunit.\r|ail@text|
|00001a50| 6c 66 3d 5c 72 61 69 6c | 74 65 78 74 6c 65 66 74 |lf=\rail|textleft|
|00001a60| 0a 5c 64 69 76 69 64 65 | 5c 72 61 69 6c 40 74 65 |.\divide|\rail@te|
|00001a70| 78 74 6c 66 20 62 79 20 | 5c 72 61 69 6c 75 6e 69 |xtlf by |\railuni|
|00001a80| 74 0a 5c 72 61 69 6c 40 | 74 65 78 74 72 74 3d 5c |t.\rail@|textrt=\|
|00001a90| 72 61 69 6c 74 65 78 74 | 72 69 67 68 74 0a 5c 64 |railtext|right.\d|
|00001aa0| 69 76 69 64 65 5c 72 61 | 69 6c 40 74 65 78 74 72 |ivide\ra|il@textr|
|00001ab0| 74 20 62 79 20 5c 72 61 | 69 6c 75 6e 69 74 0a 5c |t by \ra|ilunit.\|
|00001ac0| 72 61 69 6c 40 74 65 78 | 74 75 70 3d 5c 72 61 69 |rail@tex|tup=\rai|
|00001ad0| 6c 74 65 78 74 75 70 0a | 5c 64 69 76 69 64 65 5c |ltextup.|\divide\|
|00001ae0| 72 61 69 6c 40 74 65 78 | 74 75 70 20 62 79 20 5c |rail@tex|tup by \|
|00001af0| 72 61 69 6c 75 6e 69 74 | 0a 5c 72 61 69 6c 40 6a |railunit|.\rail@j|
|00001b00| 6f 69 6e 73 7a 3d 5c 72 | 61 69 6c 6a 6f 69 6e 73 |oinsz=\r|ailjoins|
|00001b10| 69 7a 65 0a 5c 64 69 76 | 69 64 65 5c 72 61 69 6c |ize.\div|ide\rail|
|00001b20| 40 6a 6f 69 6e 73 7a 20 | 62 79 20 5c 72 61 69 6c |@joinsz |by \rail|
|00001b30| 75 6e 69 74 0a 5c 72 61 | 69 6c 40 6a 6f 69 6e 68 |unit.\ra|il@joinh|
|00001b40| 73 7a 3d 5c 72 61 69 6c | 6a 6f 69 6e 73 69 7a 65 |sz=\rail|joinsize|
|00001b50| 0a 5c 64 69 76 69 64 65 | 5c 72 61 69 6c 40 6a 6f |.\divide|\rail@jo|
|00001b60| 69 6e 68 73 7a 20 62 79 | 20 5c 72 61 69 6c 75 6e |inhsz by| \railun|
|00001b70| 69 74 0a 5c 64 69 76 69 | 64 65 5c 72 61 69 6c 40 |it.\divi|de\rail@|
|00001b80| 6a 6f 69 6e 68 73 7a 20 | 62 79 20 32 0a 5c 72 61 |joinhsz |by 2.\ra|
|00001b90| 69 6c 40 6a 6f 69 6e 61 | 64 6a 3d 5c 72 61 69 6c |il@joina|dj=\rail|
|00001ba0| 6a 6f 69 6e 61 64 6a 75 | 73 74 0a 5c 64 69 76 69 |joinadju|st.\divi|
|00001bb0| 64 65 5c 72 61 69 6c 40 | 6a 6f 69 6e 61 64 6a 20 |de\rail@|joinadj |
|00001bc0| 62 79 20 5c 72 61 69 6c | 75 6e 69 74 0a 25 20 69 |by \rail|unit.% i|
|00001bd0| 6e 69 74 69 61 6c 69 7a | 65 20 74 68 65 20 70 61 |nitializ|e the pa|
|00001be0| 72 61 6d 65 74 65 72 73 | 0a 5c 72 61 69 6c 75 6e |rameters|.\railun|
|00001bf0| 69 74 3d 31 73 70 0a 5c | 72 61 69 6c 65 78 74 72 |it=1sp.\|railextr|
|00001c00| 61 3d 34 65 78 0a 5c 72 | 61 69 6c 62 6f 78 6c 65 |a=4ex.\r|ailboxle|
|00001c10| 66 74 3d 31 65 78 0a 5c | 72 61 69 6c 62 6f 78 72 |ft=1ex.\|railboxr|
|00001c20| 69 67 68 74 3d 31 65 78 | 0a 5c 72 61 69 6c 6f 76 |ight=1ex|.\railov|
|00001c30| 61 6c 73 70 61 63 65 3d | 32 65 78 0a 5c 72 61 69 |alspace=|2ex.\rai|
|00001c40| 6c 66 72 61 6d 65 73 70 | 61 63 65 3d 32 65 78 0a |lframesp|ace=2ex.|
|00001c50| 5c 72 61 69 6c 74 65 78 | 74 6c 65 66 74 3d 31 65 |\railtex|tleft=1e|
|00001c60| 78 0a 5c 72 61 69 6c 74 | 65 78 74 72 69 67 68 74 |x.\railt|extright|
|00001c70| 3d 31 65 78 0a 5c 72 61 | 69 6c 6a 6f 69 6e 61 64 |=1ex.\ra|iljoinad|
|00001c80| 6a 75 73 74 3d 30 70 74 | 0a 5c 72 61 69 6c 6e 61 |just=0pt|.\railna|
|00001c90| 6d 65 73 65 70 3d 31 65 | 78 0a 5c 69 66 63 61 73 |mesep=1e|x.\ifcas|
|00001ca0| 65 5c 40 70 74 73 69 7a | 65 0a 25 20 31 30 20 70 |e\@ptsiz|e.% 10 p|
|00001cb0| 74 0a 5c 72 61 69 6c 62 | 6f 78 68 65 69 67 68 74 |t.\railb|oxheight|
|00001cc0| 3d 31 36 70 74 0a 5c 72 | 61 69 6c 62 6f 78 73 6b |=16pt.\r|ailboxsk|
|00001cd0| 69 70 3d 32 34 70 74 0a | 5c 72 61 69 6c 74 65 78 |ip=24pt.|\railtex|
|00001ce0| 74 75 70 3d 35 70 74 0a | 5c 72 61 69 6c 6a 6f 69 |tup=5pt.|\railjoi|
|00001cf0| 6e 73 69 7a 65 3d 31 36 | 70 74 0a 25 20 31 31 20 |nsize=16|pt.% 11 |
|00001d00| 70 74 0a 5c 72 61 69 6c | 62 6f 78 68 65 69 67 68 |pt.\rail|boxheigh|
|00001d10| 74 3d 31 36 70 74 0a 5c | 72 61 69 6c 62 6f 78 73 |t=16pt.\|railboxs|
|00001d20| 6b 69 70 3d 32 34 70 74 | 0a 5c 72 61 69 6c 74 65 |kip=24pt|.\railte|
|00001d30| 78 74 75 70 3d 35 70 74 | 0a 5c 72 61 69 6c 6a 6f |xtup=5pt|.\railjo|
|00001d40| 69 6e 73 69 7a 65 3d 31 | 36 70 74 0a 25 20 31 32 |insize=1|6pt.% 12|
|00001d50| 20 70 74 0a 5c 72 61 69 | 6c 62 6f 78 68 65 69 67 | pt.\rai|lboxheig|
|00001d60| 68 74 3d 32 30 70 74 0a | 5c 72 61 69 6c 62 6f 78 |ht=20pt.|\railbox|
|00001d70| 73 6b 69 70 3d 32 38 70 | 74 0a 5c 72 61 69 6c 74 |skip=28p|t.\railt|
|00001d80| 65 78 74 75 70 3d 36 70 | 74 0a 5c 72 61 69 6c 6a |extup=6p|t.\railj|
|00001d90| 6f 69 6e 73 69 7a 65 3d | 32 30 70 74 0a 5c 72 61 |oinsize=|20pt.\ra|
|00001da0| 69 6c 69 6e 69 74 0a 25 | 20 72 61 69 6c 72 6f 61 |ilinit.%| railroa|
|00001db0| 64 20 66 6f 72 6d 61 74 | 74 69 6e 67 20 70 72 69 |d format|ting pri|
|00001dc0| 6d 69 74 69 76 65 73 0a | 25 20 5c 72 61 69 6c 40 |mitives.|% \rail@|
|00001dd0| 78 20 3a 20 63 75 72 72 | 65 6e 74 20 78 0a 25 20 |x : curr|ent x.% |
|00001de0| 5c 72 61 69 6c 40 79 20 | 3a 20 63 75 72 72 65 6e |\rail@y |: curren|
|00001df0| 74 20 79 0a 25 20 5c 72 | 61 69 6c 40 65 78 20 3a |t y.% \r|ail@ex :|
|00001e00| 20 63 75 72 72 65 6e 74 | 20 65 6e 64 20 78 0a 25 | current| end x.%|
|00001e10| 20 5c 72 61 69 6c 40 73 | 78 20 3a 20 73 74 61 72 | \rail@s|x : star|
|00001e20| 74 69 6e 67 20 78 20 66 | 6f 72 20 5c 72 61 69 6c |ting x f|or \rail|
|00001e30| 40 63 72 0a 25 20 5c 72 | 61 69 6c 40 72 78 20 3a |@cr.% \r|ail@rx :|
|00001e40| 20 72 69 67 68 74 6d 6f | 73 74 20 70 72 65 76 69 | rightmo|st previ|
|00001e50| 6f 75 73 20 78 20 66 6f | 72 20 5c 72 61 69 6c 40 |ous x fo|r \rail@|
|00001e60| 63 72 0a 25 20 5c 72 61 | 69 6c 40 74 6d 70 61 20 |cr.% \ra|il@tmpa |
|00001e70| 3a 20 74 65 6d 70 6f 72 | 61 72 79 20 63 6f 75 6e |: tempor|ary coun|
|00001e80| 74 0a 25 20 5c 72 61 69 | 6c 40 74 6d 70 62 20 3a |t.% \rai|l@tmpb :|
|00001e90| 20 74 65 6d 70 6f 72 61 | 72 79 20 63 6f 75 6e 74 | tempora|ry count|
|00001ea0| 0a 25 20 5c 72 61 69 6c | 40 74 6d 70 63 20 3a 20 |.% \rail|@tmpc : |
|00001eb0| 74 65 6d 70 6f 72 61 72 | 79 20 63 6f 75 6e 74 0a |temporar|y count.|
|00001ec0| 25 20 5c 72 61 69 6c 40 | 70 75 74 20 3a 20 70 75 |% \rail@|put : pu|
|00001ed0| 74 20 61 74 20 28 5c 72 | 61 69 6c 40 78 2c 5c 72 |t at (\r|ail@x,\r|
|00001ee0| 61 69 6c 40 79 29 0a 25 | 20 5c 72 61 69 6c 40 65 |ail@y).%| \rail@e|
|00001ef0| 6c 69 6e 65 20 3a 20 65 | 6e 64 20 6c 69 6e 65 20 |line : e|nd line |
|00001f00| 62 79 20 64 72 61 77 69 | 6e 67 20 66 72 6f 6d 20 |by drawi|ng from |
|00001f10| 5c 72 61 69 6c 40 65 78 | 20 74 6f 20 5c 72 61 69 |\rail@ex| to \rai|
|00001f20| 6c 40 78 0a 25 20 5c 72 | 61 69 6c 40 73 65 74 79 |l@x.% \r|ail@sety|
|00001f30| 7b 4c 45 56 45 4c 7d 20 | 3a 20 73 65 74 20 5c 72 |{LEVEL} |: set \r|
|00001f40| 61 69 6c 40 79 20 74 6f | 20 6c 65 76 65 6c 20 4c |ail@y to| level L|
|00001f50| 45 56 45 4c 0a 5c 6e 65 | 77 63 6f 75 6e 74 5c 72 |EVEL.\ne|wcount\r|
|00001f60| 61 69 6c 40 78 0a 5c 6e | 65 77 63 6f 75 6e 74 5c |ail@x.\n|ewcount\|
|00001f70| 72 61 69 6c 40 79 0a 5c | 6e 65 77 63 6f 75 6e 74 |rail@y.\|newcount|
|00001f80| 5c 72 61 69 6c 40 65 78 | 0a 5c 6e 65 77 63 6f 75 |\rail@ex|.\newcou|
|00001f90| 6e 74 5c 72 61 69 6c 40 | 73 78 0a 5c 6e 65 77 63 |nt\rail@|sx.\newc|
|00001fa0| 6f 75 6e 74 5c 72 61 69 | 6c 40 72 78 0a 5c 6e 65 |ount\rai|l@rx.\ne|
|00001fb0| 77 63 6f 75 6e 74 5c 72 | 61 69 6c 40 74 6d 70 61 |wcount\r|ail@tmpa|
|00001fc0| 0a 5c 6e 65 77 63 6f 75 | 6e 74 5c 72 61 69 6c 40 |.\newcou|nt\rail@|
|00001fd0| 74 6d 70 62 0a 5c 6e 65 | 77 63 6f 75 6e 74 5c 72 |tmpb.\ne|wcount\r|
|00001fe0| 61 69 6c 40 74 6d 70 63 | 0a 5c 64 65 66 5c 72 61 |ail@tmpc|.\def\ra|
|00001ff0| 69 6c 40 70 75 74 7b 5c | 70 75 74 28 5c 6e 75 6d |il@put{\|put(\num|
|00002000| 62 65 72 5c 72 61 69 6c | 40 78 2c 5c 6e 75 6d 62 |ber\rail|@x,\numb|
|00002010| 65 72 5c 72 61 69 6c 40 | 79 29 7d 0a 5c 64 65 66 |er\rail@|y)}.\def|
|00002020| 5c 72 61 69 6c 40 65 6c | 69 6e 65 7b 0a 5c 72 61 |\rail@el|ine{.\ra|
|00002030| 69 6c 40 74 6d 70 62 3d | 5c 72 61 69 6c 40 78 0a |il@tmpb=|\rail@x.|
|00002040| 5c 61 64 76 61 6e 63 65 | 5c 72 61 69 6c 40 74 6d |\advance|\rail@tm|
|00002050| 70 62 20 62 79 20 2d 5c | 72 61 69 6c 40 65 78 0a |pb by -\|rail@ex.|
|00002060| 5c 72 61 69 6c 40 70 75 | 74 7b 5c 6c 69 6e 65 28 |\rail@pu|t{\line(|
|00002070| 2d 31 2c 30 29 7b 5c 6e | 75 6d 62 65 72 5c 72 61 |-1,0){\n|umber\ra|
|00002080| 69 6c 40 74 6d 70 62 7d | 7d 0a 5c 64 65 66 5c 72 |il@tmpb}|}.\def\r|
|00002090| 61 69 6c 40 73 65 74 79 | 23 31 7b 0a 5c 72 61 69 |ail@sety|#1{.\rai|
|000020a0| 6c 40 79 3d 23 31 0a 5c | 6d 75 6c 74 69 70 6c 79 |l@y=#1.\|multiply|
|000020b0| 5c 72 61 69 6c 40 79 20 | 62 79 20 2d 5c 72 61 69 |\rail@y |by -\rai|
|000020c0| 6c 40 62 6f 78 73 70 0a | 5c 61 64 76 61 6e 63 65 |l@boxsp.|\advance|
|000020d0| 5c 72 61 69 6c 40 79 20 | 62 79 20 2d 5c 72 61 69 |\rail@y |by -\rai|
|000020e0| 6c 40 62 6f 78 68 74 0a | 25 20 5c 72 61 69 6c 40 |l@boxht.|% \rail@|
|000020f0| 6c 69 73 74 20 3a 20 64 | 65 63 6c 61 72 61 74 69 |list : d|eclarati|
|00002100| 6f 6e 73 20 66 6f 72 20 | 6c 69 73 74 20 65 6e 76 |ons for |list env|
|00002110| 69 72 6f 6e 6d 65 6e 74 | 0a 25 20 5c 72 61 69 6c |ironment|.% \rail|
|00002120| 70 61 72 61 6d 7b 54 45 | 58 54 7d 20 3a 20 73 65 |param{TE|XT} : se|
|00002130| 74 73 20 5c 72 61 69 6c | 40 6c 69 73 74 20 74 6f |ts \rail|@list to|
|00002140| 20 54 45 58 54 0a 25 20 | 5c 72 61 69 6c 40 62 65 | TEXT.% |\rail@be|
|00002150| 67 69 6e 7b 48 45 49 47 | 48 54 7d 7b 4e 41 4d 45 |gin{HEIG|HT}{NAME|
|00002160| 7d 20 3a 20 62 65 67 69 | 6e 20 61 20 72 61 69 6c |} : begi|n a rail|
|00002170| 72 6f 61 64 20 64 69 61 | 67 72 61 6d 20 6f 66 20 |road dia|gram of |
|00002180| 68 65 69 67 68 74 20 48 | 45 49 47 48 54 0a 25 20 |height H|EIGHT.% |
|00002190| 5c 72 61 69 6c 40 65 6e | 64 20 3a 20 65 6e 64 20 |\rail@en|d : end |
|000021a0| 61 20 72 61 69 6c 72 6f | 61 64 20 64 69 61 67 72 |a railro|ad diagr|
|000021b0| 61 6d 0a 5c 64 65 66 5c | 72 61 69 6c 40 6c 69 73 |am.\def\|rail@lis|
|000021c0| 74 7b 7d 0a 5c 64 65 66 | 5c 72 61 69 6c 70 61 72 |t{}.\def|\railpar|
|000021d0| 61 6d 23 31 7b 0a 5c 64 | 65 66 5c 72 61 69 6c 40 |am#1{.\d|ef\rail@|
|000021e0| 6c 69 73 74 7b 23 31 7d | 0a 5c 6e 65 77 62 6f 78 |list{#1}|.\newbox|
|000021f0| 5c 74 65 6d 70 62 6f 78 | 0a 5c 64 65 66 5c 72 61 |\tempbox|.\def\ra|
|00002200| 69 6c 40 62 65 67 69 6e | 23 31 23 32 7b 0a 5c 62 |il@begin|#1#2{.\b|
|00002210| 65 67 69 6e 7b 6c 69 73 | 74 7d 7b 7d 7b 5c 72 61 |egin{lis|t}{}{\ra|
|00002220| 69 6c 40 6c 69 73 74 7d | 0a 5c 69 74 65 6d 5b 5d |il@list}|.\item[]|
|00002230| 0a 5c 76 62 6f 78 5c 62 | 67 72 6f 75 70 0a 5c 69 |.\vbox\b|group.\i|
|00002240| 66 78 5c 40 65 6d 70 74 | 79 23 32 5c 65 6c 73 65 |fx\@empt|y#2\else|
|00002250| 0a 7b 5c 72 61 69 6c 40 | 6e 61 6d 65 66 6f 6e 74 |.{\rail@|namefont|
|00002260| 20 23 32 7d 0a 5c 5c 2a | 5b 5c 72 61 69 6c 6e 61 | #2}.\\*|[\railna|
|00002270| 6d 65 73 65 70 5d 5c 6e | 6f 70 61 67 65 62 72 65 |mesep]\n|opagebre|
|00002280| 61 6b 0a 5c 75 6e 69 74 | 6c 65 6e 67 74 68 3d 5c |ak.\unit|length=\|
|00002290| 72 61 69 6c 75 6e 69 74 | 0a 5c 72 61 69 6c 40 74 |railunit|.\rail@t|
|000022a0| 6d 70 61 3d 23 31 0a 5c | 6d 75 6c 74 69 70 6c 79 |mpa=#1.\|multiply|
|000022b0| 5c 72 61 69 6c 40 74 6d | 70 61 20 62 79 20 5c 72 |\rail@tm|pa by \r|
|000022c0| 61 69 6c 40 62 6f 78 73 | 70 0a 5c 62 65 67 69 6e |ail@boxs|p.\begin|
|000022d0| 7b 70 69 63 74 75 72 65 | 7d 28 30 2c 5c 6e 75 6d |{picture|}(0,\num|
|000022e0| 62 65 72 5c 72 61 69 6c | 40 74 6d 70 61 29 28 30 |ber\rail|@tmpa)(0|
|000022f0| 2c 2d 5c 6e 75 6d 62 65 | 72 5c 72 61 69 6c 40 74 |,-\numbe|r\rail@t|
|00002300| 6d 70 61 29 0a 5c 72 61 | 69 6c 40 65 78 3d 30 0a |mpa).\ra|il@ex=0.|
|00002310| 5c 72 61 69 6c 40 72 78 | 3d 30 0a 5c 72 61 69 6c |\rail@rx|=0.\rail|
|00002320| 40 78 3d 5c 72 61 69 6c | 40 65 78 74 72 61 0a 5c |@x=\rail|@extra.\|
|00002330| 72 61 69 6c 40 73 78 3d | 5c 72 61 69 6c 40 78 0a |rail@sx=|\rail@x.|
|00002340| 5c 72 61 69 6c 40 73 65 | 74 79 7b 30 7d 0a 5c 64 |\rail@se|ty{0}.\d|
|00002350| 65 66 5c 72 61 69 6c 40 | 65 6e 64 7b 0a 5c 61 64 |ef\rail@|end{.\ad|
|00002360| 76 61 6e 63 65 5c 72 61 | 69 6c 40 78 20 62 79 20 |vance\ra|il@x by |
|00002370| 5c 72 61 69 6c 40 65 78 | 74 72 61 0a 5c 72 61 69 |\rail@ex|tra.\rai|
|00002380| 6c 40 65 6c 69 6e 65 0a | 5c 65 6e 64 7b 70 69 63 |l@eline.|\end{pic|
|00002390| 74 75 72 65 7d 0a 5c 65 | 67 72 6f 75 70 0a 5c 65 |ture}.\e|group.\e|
|000023a0| 6e 64 7b 6c 69 73 74 7d | 0a 25 20 5c 72 61 69 6c |nd{list}|.% \rail|
|000023b0| 40 74 6f 6b 65 6e 66 6f | 6e 74 20 3a 20 66 6f 72 |@tokenfo|nt : for|
|000023c0| 6d 61 74 20 73 65 74 75 | 70 20 66 6f 72 20 5c 72 |mat setu|p for \r|
|000023d0| 61 69 6c 74 6f 6b 65 6e | 20 69 64 65 6e 74 69 66 |ailtoken| identif|
|000023e0| 69 65 72 73 0a 25 20 5c | 72 61 69 6c 40 74 65 72 |iers.% \|rail@ter|
|000023f0| 6d 66 6f 6e 74 20 3a 20 | 66 6f 72 6d 61 74 20 73 |mfont : |format s|
|00002400| 65 74 75 70 20 66 6f 72 | 20 74 65 72 6d 69 6e 61 |etup for| termina|
|00002410| 6c 73 0a 25 20 5c 72 61 | 69 6c 40 6e 6f 6e 74 66 |ls.% \ra|il@nontf|
|00002420| 6f 6e 74 20 3a 20 66 6f | 72 6d 61 74 20 73 65 74 |ont : fo|rmat set|
|00002430| 75 70 20 66 6f 72 20 6e | 6f 6e 74 65 72 6d 69 6e |up for n|ontermin|
|00002440| 61 6c 73 0a 25 20 5c 72 | 61 69 6c 40 61 6e 6e 6f |als.% \r|ail@anno|
|00002450| 66 6f 6e 74 20 3a 20 66 | 6f 72 6d 61 74 20 73 65 |font : f|ormat se|
|00002460| 74 75 70 20 66 6f 72 20 | 61 6e 6e 6f 74 61 74 69 |tup for |annotati|
|00002470| 6f 6e 73 0a 25 20 5c 72 | 61 69 6c 40 72 75 6c 65 |ons.% \r|ail@rule|
|00002480| 66 6f 6e 74 20 3a 20 66 | 6f 72 6d 61 74 20 73 65 |font : f|ormat se|
|00002490| 74 75 70 20 66 6f 72 20 | 72 75 6c 65 20 6e 61 6d |tup for |rule nam|
|000024a0| 65 73 0a 25 20 5c 72 61 | 69 6c 40 69 6e 64 65 78 |es.% \ra|il@index|
|000024b0| 66 6f 6e 74 20 3a 20 66 | 6f 72 6d 61 74 20 73 65 |font : f|ormat se|
|000024c0| 74 75 70 20 66 6f 72 20 | 69 6e 64 65 78 20 65 6e |tup for |index en|
|000024d0| 74 72 79 0a 25 20 5c 72 | 61 69 6c 74 6f 6b 65 6e |try.% \r|ailtoken|
|000024e0| 66 6f 6e 74 7b 54 45 58 | 54 7d 20 3a 20 73 65 74 |font{TEX|T} : set|
|000024f0| 20 5c 72 61 69 6c 74 6f | 6b 65 6e 20 66 6f 72 6d | \railto|ken form|
|00002500| 61 74 20 73 65 74 75 70 | 20 74 6f 20 54 45 58 54 |at setup| to TEXT|
|00002510| 0a 25 20 5c 72 61 69 6c | 74 65 72 6d 66 6f 6e 74 |.% \rail|termfont|
|00002520| 7b 54 45 58 54 7d 20 3a | 20 73 65 74 20 74 65 72 |{TEXT} :| set ter|
|00002530| 6d 69 6e 61 6c 20 66 6f | 72 6d 61 74 20 73 65 74 |minal fo|rmat set|
|00002540| 75 70 20 74 6f 20 54 45 | 58 54 0a 25 20 5c 72 61 |up to TE|XT.% \ra|
|00002550| 69 6c 6e 6f 6e 74 65 72 | 6d 66 6f 6e 74 7b 54 45 |ilnonter|mfont{TE|
|00002560| 58 54 7d 20 3a 20 73 65 | 74 20 6e 6f 6e 74 65 72 |XT} : se|t nonter|
|00002570| 6d 69 6e 61 6c 20 66 6f | 72 6d 61 74 20 73 65 74 |minal fo|rmat set|
|00002580| 75 70 20 74 6f 20 54 45 | 58 54 0a 25 20 5c 72 61 |up to TE|XT.% \ra|
|00002590| 69 6c 61 6e 6e 6f 74 61 | 74 65 66 6f 6e 74 7b 54 |ilannota|tefont{T|
|000025a0| 45 58 54 7d 20 3a 20 73 | 65 74 20 61 6e 6e 6f 74 |EXT} : s|et annot|
|000025b0| 61 74 69 6f 6e 20 66 6f | 72 6d 61 74 20 73 65 74 |ation fo|rmat set|
|000025c0| 75 70 20 74 6f 20 54 45 | 58 54 0a 25 20 5c 72 61 |up to TE|XT.% \ra|
|000025d0| 69 6c 6e 61 6d 65 66 6f | 6e 74 7b 54 45 58 54 7d |ilnamefo|nt{TEXT}|
|000025e0| 20 3a 20 73 65 74 20 72 | 75 6c 65 20 6e 61 6d 65 | : set r|ule name|
|000025f0| 20 66 6f 72 6d 61 74 20 | 73 65 74 75 70 20 74 6f | format |setup to|
|00002600| 20 54 45 58 54 0a 25 20 | 5c 72 61 69 6c 69 6e 64 | TEXT.% |\railind|
|00002610| 65 78 66 6f 6e 74 7b 54 | 45 58 54 7d 20 3a 20 73 |exfont{T|EXT} : s|
|00002620| 65 74 20 69 6e 64 65 78 | 20 65 6e 74 72 79 20 66 |et index| entry f|
|00002630| 6f 72 6d 61 74 20 73 65 | 74 75 70 20 74 6f 20 54 |ormat se|tup to T|
|00002640| 45 58 54 0a 5c 6c 65 74 | 5c 72 61 69 6c 40 74 6f |EXT.\let|\rail@to|
|00002650| 6b 65 6e 66 6f 6e 74 3d | 5c 74 74 0a 5c 6c 65 74 |kenfont=|\tt.\let|
|00002660| 5c 72 61 69 6c 40 74 65 | 72 6d 66 6f 6e 74 3d 5c |\rail@te|rmfont=\|
|00002670| 74 74 0a 5c 6c 65 74 5c | 72 61 69 6c 40 6e 6f 6e |tt.\let\|rail@non|
|00002680| 74 66 6f 6e 74 3d 5c 72 | 6d 0a 5c 6c 65 74 5c 72 |tfont=\r|m.\let\r|
|00002690| 61 69 6c 40 61 6e 6e 6f | 66 6f 6e 74 3d 5c 69 74 |ail@anno|font=\it|
|000026a0| 0a 5c 6c 65 74 5c 72 61 | 69 6c 40 6e 61 6d 65 66 |.\let\ra|il@namef|
|000026b0| 6f 6e 74 3d 5c 69 74 0a | 5c 6c 65 74 5c 72 61 69 |ont=\it.|\let\rai|
|000026c0| 6c 40 69 6e 64 65 78 66 | 6f 6e 74 3d 5c 69 74 0a |l@indexf|ont=\it.|
|000026d0| 5c 64 65 66 5c 72 61 69 | 6c 74 6f 6b 65 6e 66 6f |\def\rai|ltokenfo|
|000026e0| 6e 74 23 31 7b 0a 5c 64 | 65 66 5c 72 61 69 6c 40 |nt#1{.\d|ef\rail@|
|000026f0| 74 6f 6b 65 6e 66 6f 6e | 74 7b 23 31 7d 0a 5c 64 |tokenfon|t{#1}.\d|
|00002700| 65 66 5c 72 61 69 6c 74 | 65 72 6d 66 6f 6e 74 23 |ef\railt|ermfont#|
|00002710| 31 7b 0a 5c 64 65 66 5c | 72 61 69 6c 40 74 65 72 |1{.\def\|rail@ter|
|00002720| 6d 66 6f 6e 74 7b 23 31 | 7d 0a 5c 64 65 66 5c 72 |mfont{#1|}.\def\r|
|00002730| 61 69 6c 6e 6f 6e 74 65 | 72 6d 66 6f 6e 74 23 31 |ailnonte|rmfont#1|
|00002740| 7b 0a 5c 64 65 66 5c 72 | 61 69 6c 40 6e 6f 6e 74 |{.\def\r|ail@nont|
|00002750| 66 6f 6e 74 7b 23 31 7d | 0a 5c 64 65 66 5c 72 61 |font{#1}|.\def\ra|
|00002760| 69 6c 61 6e 6e 6f 74 61 | 74 65 66 6f 6e 74 23 31 |ilannota|tefont#1|
|00002770| 7b 0a 5c 64 65 66 5c 72 | 61 69 6c 40 61 6e 6e 6f |{.\def\r|ail@anno|
|00002780| 66 6f 6e 74 7b 23 31 7d | 0a 5c 64 65 66 5c 72 61 |font{#1}|.\def\ra|
|00002790| 69 6c 6e 61 6d 65 66 6f | 6e 74 23 31 7b 0a 5c 64 |ilnamefo|nt#1{.\d|
|000027a0| 65 66 5c 72 61 69 6c 40 | 6e 61 6d 65 66 6f 6e 74 |ef\rail@|namefont|
|000027b0| 7b 23 31 7d 0a 5c 64 65 | 66 5c 72 61 69 6c 69 6e |{#1}.\de|f\railin|
|000027c0| 64 65 78 66 6f 6e 74 23 | 31 7b 0a 5c 64 65 66 5c |dexfont#|1{.\def\|
|000027d0| 72 61 69 6c 40 69 6e 64 | 65 78 66 6f 6e 74 7b 23 |rail@ind|exfont{#|
|000027e0| 31 7d 0a 25 20 5c 72 61 | 69 6c 40 74 6f 6b 65 6e |1}.% \ra|il@token|
|000027f0| 7b 54 45 58 54 7d 20 3a | 20 66 6f 72 6d 61 74 20 |{TEXT} :| format |
|00002800| 74 6f 6b 65 6e 20 54 45 | 58 54 0a 25 20 5c 72 61 |token TE|XT.% \ra|
|00002810| 69 6c 40 63 74 6f 6b 65 | 6e 7b 54 45 58 54 7d 20 |il@ctoke|n{TEXT} |
|00002820| 3a 20 66 6f 72 6d 61 74 | 20 74 6f 6b 65 6e 20 54 |: format| token T|
|00002830| 45 58 54 20 63 65 6e 74 | 65 72 65 64 0a 25 20 5c |EXT cent|ered.% \|
|00002840| 72 61 69 6c 40 6e 6f 6e | 74 7b 54 45 58 54 7d 20 |rail@non|t{TEXT} |
|00002850| 3a 20 66 6f 72 6d 61 74 | 20 6e 6f 6e 74 65 72 6d |: format| nonterm|
|00002860| 69 6e 61 6c 20 54 45 58 | 54 0a 25 20 5c 72 61 69 |inal TEX|T.% \rai|
|00002870| 6c 40 63 6e 6f 6e 74 7b | 54 45 58 54 7d 20 3a 20 |l@cnont{|TEXT} : |
|00002880| 66 6f 72 6d 61 74 20 6e | 6f 6e 74 65 72 6d 69 6e |format n|ontermin|
|00002890| 61 6c 20 54 45 58 54 20 | 63 65 6e 74 65 72 65 64 |al TEXT |centered|
|000028a0| 0a 25 20 5c 72 61 69 6c | 40 63 74 65 72 6d 7b 54 |.% \rail|@cterm{T|
|000028b0| 45 58 54 7d 20 3a 20 66 | 6f 72 6d 61 74 20 74 65 |EXT} : f|ormat te|
|000028c0| 72 6d 69 6e 61 6c 20 54 | 45 58 54 0a 25 20 5c 72 |rminal T|EXT.% \r|
|000028d0| 61 69 6c 40 63 74 65 72 | 6d 7b 54 45 58 54 7d 20 |ail@cter|m{TEXT} |
|000028e0| 3a 20 66 6f 72 6d 61 74 | 20 74 65 72 6d 69 6e 61 |: format| termina|
|000028f0| 6c 20 54 45 58 54 20 63 | 65 6e 74 65 72 65 64 0a |l TEXT c|entered.|
|00002900| 25 20 5c 72 61 69 6c 40 | 61 6e 6e 6f 74 65 5b 54 |% \rail@|annote[T|
|00002910| 45 58 54 5d 20 3a 20 66 | 6f 72 6d 61 74 20 54 45 |EXT] : f|ormat TE|
|00002920| 58 54 20 61 73 20 61 6e | 6e 6f 74 61 74 69 6f 6e |XT as an|notation|
|00002930| 0a 25 20 5c 72 61 69 6c | 40 61 6e 6e 6f 74 65 62 |.% \rail|@annoteb|
|00002940| 6f 78 5b 54 45 58 54 5d | 20 3a 20 61 6e 6e 6f 74 |ox[TEXT]| : annot|
|00002950| 61 74 65 20 62 6f 78 20 | 77 69 74 68 20 54 45 58 |ate box |with TEX|
|00002960| 54 0a 5c 64 65 66 5c 72 | 61 69 6c 40 74 6f 6b 65 |T.\def\r|ail@toke|
|00002970| 6e 23 31 7b 0a 5c 65 78 | 70 61 6e 64 61 66 74 65 |n#1{.\ex|pandafte|
|00002980| 72 5c 40 69 66 75 6e 64 | 65 66 69 6e 65 64 7b 72 |r\@ifund|efined{r|
|00002990| 61 69 6c 40 74 40 23 31 | 7d 7b 0a 5c 72 61 69 6c |ail@t@#1|}{.\rail|
|000029a0| 40 73 65 74 62 6f 78 7b | 5c 72 61 69 6c 40 74 65 |@setbox{|\rail@te|
|000029b0| 72 6d 66 6f 6e 74 20 23 | 31 7d 0a 5c 72 61 69 6c |rmfont #|1}.\rail|
|000029c0| 40 73 65 74 62 6f 78 7b | 5c 72 61 69 6c 40 74 6f |@setbox{|\rail@to|
|000029d0| 6b 65 6e 66 6f 6e 74 20 | 5c 63 73 6e 61 6d 65 20 |kenfont |\csname |
|000029e0| 72 61 69 6c 40 74 40 23 | 31 5c 65 6e 64 63 73 6e |rail@t@#|1\endcsn|
|000029f0| 61 6d 65 7d 0a 5c 72 61 | 69 6c 40 6f 76 61 6c 0a |ame}.\ra|il@oval.|
|00002a00| 5c 64 65 66 5c 72 61 69 | 6c 40 63 74 6f 6b 65 6e |\def\rai|l@ctoken|
|00002a10| 23 31 7b 0a 5c 72 61 69 | 6c 40 73 65 74 62 6f 78 |#1{.\rai|l@setbox|
|00002a20| 7b 5c 72 61 69 6c 40 74 | 6f 6b 65 6e 66 6f 6e 74 |{\rail@t|okenfont|
|00002a30| 20 5c 63 73 6e 61 6d 65 | 20 72 61 69 6c 40 74 40 | \csname| rail@t@|
|00002a40| 23 31 5c 65 6e 64 63 73 | 6e 61 6d 65 7d 0a 5c 72 |#1\endcs|name}.\r|
|00002a50| 61 69 6c 40 63 6f 76 61 | 6c 0a 5c 64 65 66 5c 72 |ail@cova|l.\def\r|
|00002a60| 61 69 6c 40 6e 6f 6e 74 | 23 31 7b 0a 5c 72 61 69 |ail@nont|#1{.\rai|
|00002a70| 6c 40 73 65 74 62 6f 78 | 7b 5c 72 61 69 6c 40 6e |l@setbox|{\rail@n|
|00002a80| 6f 6e 74 66 6f 6e 74 20 | 23 31 7d 0a 5c 72 61 69 |ontfont |#1}.\rai|
|00002a90| 6c 40 66 72 61 6d 65 0a | 5c 64 65 66 5c 72 61 69 |l@frame.|\def\rai|
|00002aa0| 6c 40 63 6e 6f 6e 74 23 | 31 7b 0a 5c 72 61 69 6c |l@cnont#|1{.\rail|
|00002ab0| 40 73 65 74 62 6f 78 7b | 5c 72 61 69 6c 40 6e 6f |@setbox{|\rail@no|
|00002ac0| 6e 74 66 6f 6e 74 20 23 | 31 7d 0a 5c 72 61 69 6c |ntfont #|1}.\rail|
|00002ad0| 40 63 66 72 61 6d 65 0a | 5c 64 65 66 5c 72 61 69 |@cframe.|\def\rai|
|00002ae0| 6c 40 74 65 72 6d 23 31 | 7b 0a 5c 72 61 69 6c 40 |l@term#1|{.\rail@|
|00002af0| 73 65 74 62 6f 78 7b 5c | 72 61 69 6c 40 74 65 72 |setbox{\|rail@ter|
|00002b00| 6d 66 6f 6e 74 20 23 31 | 7d 0a 5c 72 61 69 6c 40 |mfont #1|}.\rail@|
|00002b10| 6f 76 61 6c 0a 5c 64 65 | 66 5c 72 61 69 6c 40 63 |oval.\de|f\rail@c|
|00002b20| 74 65 72 6d 23 31 7b 0a | 5c 72 61 69 6c 40 73 65 |term#1{.|\rail@se|
|00002b30| 74 62 6f 78 7b 5c 72 61 | 69 6c 40 74 65 72 6d 66 |tbox{\ra|il@termf|
|00002b40| 6f 6e 74 20 23 31 7d 0a | 5c 72 61 69 6c 40 63 6f |ont #1}.|\rail@co|
|00002b50| 76 61 6c 0a 5c 64 65 66 | 5c 72 61 69 6c 40 61 6e |val.\def|\rail@an|
|00002b60| 6e 6f 74 65 5b 23 31 5d | 7b 0a 5c 72 61 69 6c 40 |note[#1]|{.\rail@|
|00002b70| 73 65 74 62 6f 78 7b 5c | 72 61 69 6c 40 61 6e 6e |setbox{\|rail@ann|
|00002b80| 6f 66 6f 6e 74 20 23 31 | 7d 0a 5c 72 61 69 6c 40 |ofont #1|}.\rail@|
|00002b90| 74 65 78 74 0a 5c 64 65 | 66 5c 72 61 69 6c 40 61 |text.\de|f\rail@a|
|00002ba0| 6e 6e 6f 74 65 62 6f 78 | 5b 23 31 5d 7b 0a 5c 20 |nnotebox|[#1]{.\ |
|00002bb0| 5c 72 61 69 6c 40 61 6e | 6e 6f 66 6f 6e 74 20 23 |\rail@an|nofont #|
|00002bc0| 31 0a 25 20 5c 72 61 69 | 6c 40 62 6f 78 20 3a 20 |1.% \rai|l@box : |
|00002bd0| 74 65 6d 70 6f 72 61 72 | 79 20 62 6f 78 20 66 6f |temporar|y box fo|
|00002be0| 72 20 5c 72 61 69 6c 40 | 6f 76 61 6c 20 61 6e 64 |r \rail@|oval and|
|00002bf0| 20 5c 72 61 69 6c 40 66 | 72 61 6d 65 0a 25 20 5c | \rail@f|rame.% \|
|00002c00| 72 61 69 6c 40 73 65 74 | 62 6f 78 7b 54 45 58 54 |rail@set|box{TEXT|
|00002c10| 7d 20 3a 20 73 65 74 20 | 5c 72 61 69 6c 40 62 6f |} : set |\rail@bo|
|00002c20| 78 20 74 6f 20 54 45 58 | 54 2c 20 73 65 74 20 5c |x to TEX|T, set \|
|00002c30| 72 61 69 6c 40 74 6d 70 | 61 20 74 6f 20 77 69 64 |rail@tmp|a to wid|
|00002c40| 74 68 0a 25 20 5c 72 61 | 69 6c 40 6f 76 61 6c 20 |th.% \ra|il@oval |
|00002c50| 3a 20 66 6f 72 6d 61 74 | 20 5c 72 61 69 6c 40 62 |: format| \rail@b|
|00002c60| 6f 78 20 6f 66 20 77 69 | 64 74 68 20 5c 72 61 69 |ox of wi|dth \rai|
|00002c70| 6c 40 74 6d 70 61 20 69 | 6e 73 69 64 65 20 61 6e |l@tmpa i|nside an|
|00002c80| 20 6f 76 61 6c 0a 25 20 | 5c 72 61 69 6c 40 63 6f | oval.% |\rail@co|
|00002c90| 76 61 6c 20 3a 20 73 61 | 6d 65 20 61 73 20 5c 72 |val : sa|me as \r|
|00002ca0| 61 69 6c 40 6f 76 61 6c | 2c 20 62 75 74 20 63 65 |ail@oval|, but ce|
|00002cb0| 6e 74 65 72 65 64 20 62 | 65 74 77 65 65 6e 20 5c |ntered b|etween \|
|00002cc0| 72 61 69 6c 40 78 20 61 | 6e 64 0a 25 20 20 20 20 |rail@x a|nd.% |
|00002cd0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 72 61 69 6c | | \rail|
|00002ce0| 40 6d 78 0a 25 20 5c 72 | 61 69 6c 40 66 72 61 6d |@mx.% \r|ail@fram|
|00002cf0| 65 20 3a 20 66 6f 72 6d | 61 74 20 5c 72 61 69 6c |e : form|at \rail|
|00002d00| 40 62 6f 78 20 6f 66 20 | 77 69 64 74 68 20 5c 72 |@box of |width \r|
|00002d10| 61 69 6c 40 74 6d 70 61 | 20 69 6e 73 69 64 65 20 |ail@tmpa| inside |
|00002d20| 61 20 66 72 61 6d 65 0a | 25 20 5c 72 61 69 6c 40 |a frame.|% \rail@|
|00002d30| 63 66 72 61 6d 65 20 3a | 20 73 61 6d 65 20 61 73 |cframe :| same as|
|00002d40| 20 5c 72 61 69 6c 40 66 | 72 61 6d 65 2c 20 62 75 | \rail@f|rame, bu|
|00002d50| 74 20 63 65 6e 74 65 72 | 65 64 20 62 65 74 77 65 |t center|ed betwe|
|00002d60| 65 6e 20 5c 72 61 69 6c | 40 78 20 61 6e 64 0a 25 |en \rail|@x and.%|
|00002d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d80| 5c 72 61 69 6c 40 6d 78 | 0a 25 20 5c 72 61 69 6c |\rail@mx|.% \rail|
|00002d90| 40 74 65 78 74 20 3a 20 | 66 6f 72 6d 61 74 20 5c |@text : |format \|
|00002da0| 72 61 69 6c 40 62 6f 78 | 20 6f 66 20 77 69 64 74 |rail@box| of widt|
|00002db0| 68 20 5c 72 61 69 6c 40 | 74 6d 70 61 20 61 62 6f |h \rail@|tmpa abo|
|00002dc0| 76 65 20 74 68 65 20 6c | 69 6e 65 0a 5c 6e 65 77 |ve the l|ine.\new|
|00002dd0| 62 6f 78 5c 72 61 69 6c | 40 62 6f 78 0a 5c 64 65 |box\rail|@box.\de|
|00002de0| 66 5c 72 61 69 6c 40 73 | 65 74 62 6f 78 23 31 7b |f\rail@s|etbox#1{|
|00002df0| 0a 5c 73 65 74 62 6f 78 | 5c 72 61 69 6c 40 62 6f |.\setbox|\rail@bo|
|00002e00| 78 5c 68 62 6f 78 7b 5c | 73 74 72 75 74 23 31 7d |x\hbox{\|strut#1}|
|00002e10| 0a 5c 72 61 69 6c 40 74 | 6d 70 61 3d 5c 77 64 5c |.\rail@t|mpa=\wd\|
|00002e20| 72 61 69 6c 40 62 6f 78 | 0a 5c 64 69 76 69 64 65 |rail@box|.\divide|
|00002e30| 5c 72 61 69 6c 40 74 6d | 70 61 20 62 79 20 5c 72 |\rail@tm|pa by \r|
|00002e40| 61 69 6c 75 6e 69 74 0a | 5c 64 65 66 5c 72 61 69 |ailunit.|\def\rai|
|00002e50| 6c 40 6f 76 61 6c 7b 0a | 5c 61 64 76 61 6e 63 65 |l@oval{.|\advance|
|00002e60| 5c 72 61 69 6c 40 78 20 | 62 79 20 5c 72 61 69 6c |\rail@x |by \rail|
|00002e70| 40 62 6f 78 6c 66 0a 5c | 72 61 69 6c 40 65 6c 69 |@boxlf.\|rail@eli|
|00002e80| 6e 65 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |ne.\adva|nce\rail|
|00002e90| 40 74 6d 70 61 20 62 79 | 20 5c 72 61 69 6c 40 6f |@tmpa by| \rail@o|
|00002ea0| 76 61 6c 73 70 0a 5c 69 | 66 6e 75 6d 5c 72 61 69 |valsp.\i|fnum\rai|
|00002eb0| 6c 40 74 6d 70 61 3c 5c | 72 61 69 6c 40 62 6f 78 |l@tmpa<\|rail@box|
|00002ec0| 68 74 5c 72 61 69 6c 40 | 74 6d 70 61 3d 5c 72 61 |ht\rail@|tmpa=\ra|
|00002ed0| 69 6c 40 62 6f 78 68 74 | 5c 66 69 0a 5c 72 61 69 |il@boxht|\fi.\rai|
|00002ee0| 6c 40 74 6d 70 62 3d 5c | 72 61 69 6c 40 74 6d 70 |l@tmpb=\|rail@tmp|
|00002ef0| 61 0a 5c 64 69 76 69 64 | 65 5c 72 61 69 6c 40 74 |a.\divid|e\rail@t|
|00002f00| 6d 70 62 20 62 79 20 32 | 0a 5c 61 64 76 61 6e 63 |mpb by 2|.\advanc|
|00002f10| 65 5c 72 61 69 6c 40 79 | 20 62 79 20 2d 5c 72 61 |e\rail@y| by -\ra|
|00002f20| 69 6c 40 62 6f 78 68 68 | 74 0a 5c 72 61 69 6c 40 |il@boxhh|t.\rail@|
|00002f30| 70 75 74 7b 5c 6d 61 6b | 65 62 6f 78 28 5c 6e 75 |put{\mak|ebox(\nu|
|00002f40| 6d 62 65 72 5c 72 61 69 | 6c 40 74 6d 70 61 2c 5c |mber\rai|l@tmpa,\|
|00002f50| 6e 75 6d 62 65 72 5c 72 | 61 69 6c 40 62 6f 78 68 |number\r|ail@boxh|
|00002f60| 74 29 7b 5c 62 6f 78 5c | 72 61 69 6c 40 62 6f 78 |t){\box\|rail@box|
|00002f70| 7d 7d 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |}}.\adva|nce\rail|
|00002f80| 40 79 20 62 79 20 5c 72 | 61 69 6c 40 62 6f 78 68 |@y by \r|ail@boxh|
|00002f90| 68 74 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |ht.\adva|nce\rail|
|00002fa0| 40 78 20 62 79 20 5c 72 | 61 69 6c 40 74 6d 70 62 |@x by \r|ail@tmpb|
|00002fb0| 0a 5c 72 61 69 6c 40 70 | 75 74 7b 5c 6f 76 61 6c |.\rail@p|ut{\oval|
|00002fc0| 28 5c 6e 75 6d 62 65 72 | 5c 72 61 69 6c 40 74 6d |(\number|\rail@tm|
|00002fd0| 70 61 2c 5c 6e 75 6d 62 | 65 72 5c 72 61 69 6c 40 |pa,\numb|er\rail@|
|00002fe0| 62 6f 78 68 74 29 7d 0a | 5c 61 64 76 61 6e 63 65 |boxht)}.|\advance|
|00002ff0| 5c 72 61 69 6c 40 78 20 | 62 79 20 5c 72 61 69 6c |\rail@x |by \rail|
|00003000| 40 74 6d 70 62 0a 5c 72 | 61 69 6c 40 65 78 3d 5c |@tmpb.\r|ail@ex=\|
|00003010| 72 61 69 6c 40 78 0a 5c | 61 64 76 61 6e 63 65 5c |rail@x.\|advance\|
|00003020| 72 61 69 6c 40 78 20 62 | 79 20 5c 72 61 69 6c 40 |rail@x b|y \rail@|
|00003030| 62 6f 78 72 74 0a 5c 64 | 65 66 5c 72 61 69 6c 40 |boxrt.\d|ef\rail@|
|00003040| 63 6f 76 61 6c 7b 0a 5c | 72 61 69 6c 40 74 6d 70 |coval{.\|rail@tmp|
|00003050| 62 3d 5c 72 61 69 6c 40 | 74 6d 70 61 0a 5c 61 64 |b=\rail@|tmpa.\ad|
|00003060| 76 61 6e 63 65 5c 72 61 | 69 6c 40 74 6d 70 62 20 |vance\ra|il@tmpb |
|00003070| 62 79 20 5c 72 61 69 6c | 40 6f 76 61 6c 73 70 0a |by \rail|@ovalsp.|
|00003080| 5c 69 66 6e 75 6d 5c 72 | 61 69 6c 40 74 6d 70 62 |\ifnum\r|ail@tmpb|
|00003090| 3c 5c 72 61 69 6c 40 62 | 6f 78 68 74 5c 72 61 69 |<\rail@b|oxht\rai|
|000030a0| 6c 40 74 6d 70 62 3d 5c | 72 61 69 6c 40 62 6f 78 |l@tmpb=\|rail@box|
|000030b0| 68 74 5c 66 69 0a 5c 61 | 64 76 61 6e 63 65 5c 72 |ht\fi.\a|dvance\r|
|000030c0| 61 69 6c 40 74 6d 70 62 | 20 62 79 20 5c 72 61 69 |ail@tmpb| by \rai|
|000030d0| 6c 40 62 6f 78 6c 66 0a | 5c 61 64 76 61 6e 63 65 |l@boxlf.|\advance|
|000030e0| 5c 72 61 69 6c 40 74 6d | 70 62 20 62 79 20 5c 72 |\rail@tm|pb by \r|
|000030f0| 61 69 6c 40 62 6f 78 72 | 74 0a 5c 72 61 69 6c 40 |ail@boxr|t.\rail@|
|00003100| 74 6d 70 63 3d 5c 72 61 | 69 6c 40 6d 78 0a 5c 61 |tmpc=\ra|il@mx.\a|
|00003110| 64 76 61 6e 63 65 5c 72 | 61 69 6c 40 74 6d 70 63 |dvance\r|ail@tmpc|
|00003120| 20 62 79 20 2d 5c 72 61 | 69 6c 40 78 0a 5c 61 64 | by -\ra|il@x.\ad|
|00003130| 76 61 6e 63 65 5c 72 61 | 69 6c 40 74 6d 70 63 20 |vance\ra|il@tmpc |
|00003140| 62 79 20 2d 5c 72 61 69 | 6c 40 74 6d 70 62 0a 5c |by -\rai|l@tmpb.\|
|00003150| 64 69 76 69 64 65 5c 72 | 61 69 6c 40 74 6d 70 63 |divide\r|ail@tmpc|
|00003160| 20 62 79 20 32 0a 5c 69 | 66 6e 75 6d 5c 72 61 69 | by 2.\i|fnum\rai|
|00003170| 6c 40 74 6d 70 63 3e 30 | 0a 5c 61 64 76 61 6e 63 |l@tmpc>0|.\advanc|
|00003180| 65 5c 72 61 69 6c 40 78 | 20 62 79 20 5c 72 61 69 |e\rail@x| by \rai|
|00003190| 6c 40 74 6d 70 63 0a 5c | 72 61 69 6c 40 6f 76 61 |l@tmpc.\|rail@ova|
|000031a0| 6c 0a 5c 64 65 66 5c 72 | 61 69 6c 40 66 72 61 6d |l.\def\r|ail@fram|
|000031b0| 65 7b 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |e{.\adva|nce\rail|
|000031c0| 40 78 20 62 79 20 5c 72 | 61 69 6c 40 62 6f 78 6c |@x by \r|ail@boxl|
|000031d0| 66 0a 5c 72 61 69 6c 40 | 65 6c 69 6e 65 0a 5c 61 |f.\rail@|eline.\a|
|000031e0| 64 76 61 6e 63 65 5c 72 | 61 69 6c 40 74 6d 70 61 |dvance\r|ail@tmpa|
|000031f0| 20 62 79 20 5c 72 61 69 | 6c 40 66 72 61 6d 65 73 | by \rai|l@frames|
|00003200| 70 0a 5c 69 66 6e 75 6d | 5c 72 61 69 6c 40 74 6d |p.\ifnum|\rail@tm|
|00003210| 70 61 3c 5c 72 61 69 6c | 40 62 6f 78 68 74 5c 72 |pa<\rail|@boxht\r|
|00003220| 61 69 6c 40 74 6d 70 61 | 3d 5c 72 61 69 6c 40 62 |ail@tmpa|=\rail@b|
|00003230| 6f 78 68 74 5c 66 69 0a | 5c 61 64 76 61 6e 63 65 |oxht\fi.|\advance|
|00003240| 5c 72 61 69 6c 40 79 20 | 62 79 20 2d 5c 72 61 69 |\rail@y |by -\rai|
|00003250| 6c 40 62 6f 78 68 68 74 | 0a 5c 72 61 69 6c 40 70 |l@boxhht|.\rail@p|
|00003260| 75 74 7b 5c 66 72 61 6d | 65 62 6f 78 28 5c 6e 75 |ut{\fram|ebox(\nu|
|00003270| 6d 62 65 72 5c 72 61 69 | 6c 40 74 6d 70 61 2c 5c |mber\rai|l@tmpa,\|
|00003280| 6e 75 6d 62 65 72 5c 72 | 61 69 6c 40 62 6f 78 68 |number\r|ail@boxh|
|00003290| 74 29 7b 5c 62 6f 78 5c | 72 61 69 6c 40 62 6f 78 |t){\box\|rail@box|
|000032a0| 7d 7d 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |}}.\adva|nce\rail|
|000032b0| 40 79 20 62 79 20 5c 72 | 61 69 6c 40 62 6f 78 68 |@y by \r|ail@boxh|
|000032c0| 68 74 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |ht.\adva|nce\rail|
|000032d0| 40 78 20 62 79 20 5c 72 | 61 69 6c 40 74 6d 70 61 |@x by \r|ail@tmpa|
|000032e0| 0a 5c 72 61 69 6c 40 65 | 78 3d 5c 72 61 69 6c 40 |.\rail@e|x=\rail@|
|000032f0| 78 0a 5c 61 64 76 61 6e | 63 65 5c 72 61 69 6c 40 |x.\advan|ce\rail@|
|00003300| 78 20 62 79 20 5c 72 61 | 69 6c 40 62 6f 78 72 74 |x by \ra|il@boxrt|
|00003310| 0a 5c 64 65 66 5c 72 61 | 69 6c 40 63 66 72 61 6d |.\def\ra|il@cfram|
|00003320| 65 7b 0a 5c 72 61 69 6c | 40 74 6d 70 62 3d 5c 72 |e{.\rail|@tmpb=\r|
|00003330| 61 69 6c 40 74 6d 70 61 | 0a 5c 61 64 76 61 6e 63 |ail@tmpa|.\advanc|
|00003340| 65 5c 72 61 69 6c 40 74 | 6d 70 62 20 62 79 20 5c |e\rail@t|mpb by \|
|00003350| 72 61 69 6c 40 66 72 61 | 6d 65 73 70 0a 5c 69 66 |rail@fra|mesp.\if|
|00003360| 6e 75 6d 5c 72 61 69 6c | 40 74 6d 70 62 3c 5c 72 |num\rail|@tmpb<\r|
|00003370| 61 69 6c 40 62 6f 78 68 | 74 5c 72 61 69 6c 40 74 |ail@boxh|t\rail@t|
|00003380| 6d 70 62 3d 5c 72 61 69 | 6c 40 62 6f 78 68 74 5c |mpb=\rai|l@boxht\|
|00003390| 66 69 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |fi.\adva|nce\rail|
|000033a0| 40 74 6d 70 62 20 62 79 | 20 5c 72 61 69 6c 40 62 |@tmpb by| \rail@b|
|000033b0| 6f 78 6c 66 0a 5c 61 64 | 76 61 6e 63 65 5c 72 61 |oxlf.\ad|vance\ra|
|000033c0| 69 6c 40 74 6d 70 62 20 | 62 79 20 5c 72 61 69 6c |il@tmpb |by \rail|
|000033d0| 40 62 6f 78 72 74 0a 5c | 72 61 69 6c 40 74 6d 70 |@boxrt.\|rail@tmp|
|000033e0| 63 3d 5c 72 61 69 6c 40 | 6d 78 0a 5c 61 64 76 61 |c=\rail@|mx.\adva|
|000033f0| 6e 63 65 5c 72 61 69 6c | 40 74 6d 70 63 20 62 79 |nce\rail|@tmpc by|
|00003400| 20 2d 5c 72 61 69 6c 40 | 78 0a 5c 61 64 76 61 6e | -\rail@|x.\advan|
|00003410| 63 65 5c 72 61 69 6c 40 | 74 6d 70 63 20 62 79 20 |ce\rail@|tmpc by |
|00003420| 2d 5c 72 61 69 6c 40 74 | 6d 70 62 0a 5c 64 69 76 |-\rail@t|mpb.\div|
|00003430| 69 64 65 5c 72 61 69 6c | 40 74 6d 70 63 20 62 79 |ide\rail|@tmpc by|
|00003440| 20 32 0a 5c 69 66 6e 75 | 6d 5c 72 61 69 6c 40 74 | 2.\ifnu|m\rail@t|
|00003450| 6d 70 63 3e 30 0a 5c 61 | 64 76 61 6e 63 65 5c 72 |mpc>0.\a|dvance\r|
|00003460| 61 69 6c 40 78 20 62 79 | 20 5c 72 61 69 6c 40 74 |ail@x by| \rail@t|
|00003470| 6d 70 63 0a 5c 72 61 69 | 6c 40 66 72 61 6d 65 0a |mpc.\rai|l@frame.|
|00003480| 5c 64 65 66 5c 72 61 69 | 6c 40 74 65 78 74 7b 0a |\def\rai|l@text{.|
|00003490| 5c 61 64 76 61 6e 63 65 | 5c 72 61 69 6c 40 78 20 |\advance|\rail@x |
|000034a0| 62 79 20 5c 72 61 69 6c | 40 74 65 78 74 6c 66 0a |by \rail|@textlf.|
|000034b0| 5c 61 64 76 61 6e 63 65 | 5c 72 61 69 6c 40 79 20 |\advance|\rail@y |
|000034c0| 62 79 20 5c 72 61 69 6c | 40 74 65 78 74 75 70 0a |by \rail|@textup.|
|000034d0| 5c 72 61 69 6c 40 70 75 | 74 7b 5c 62 6f 78 5c 72 |\rail@pu|t{\box\r|
|000034e0| 61 69 6c 40 62 6f 78 7d | 0a 5c 61 64 76 61 6e 63 |ail@box}|.\advanc|
|000034f0| 65 5c 72 61 69 6c 40 79 | 20 62 79 20 2d 5c 72 61 |e\rail@y| by -\ra|
|00003500| 69 6c 40 74 65 78 74 75 | 70 0a 5c 61 64 76 61 6e |il@textu|p.\advan|
|00003510| 63 65 5c 72 61 69 6c 40 | 78 20 62 79 20 5c 72 61 |ce\rail@|x by \ra|
|00003520| 69 6c 40 74 6d 70 61 0a | 5c 61 64 76 61 6e 63 65 |il@tmpa.|\advance|
|00003530| 5c 72 61 69 6c 40 78 20 | 62 79 20 5c 72 61 69 6c |\rail@x |by \rail|
|00003540| 40 74 65 78 74 72 74 0a | 25 20 61 6c 74 65 72 6e |@textrt.|% altern|
|00003550| 61 74 69 76 65 73 0a 25 | 20 5c 72 61 69 6c 40 6a |atives.%| \rail@j|
|00003560| 78 20 5c 72 61 69 6c 40 | 6a 79 20 3a 20 63 75 72 |x \rail@|jy : cur|
|00003570| 72 65 6e 74 20 6a 6f 69 | 6e 20 70 6f 69 6e 74 0a |rent joi|n point.|
|00003580| 25 20 5c 72 61 69 6c 40 | 67 78 20 5c 72 61 69 6c |% \rail@|gx \rail|
|00003590| 40 67 79 20 5c 72 61 69 | 6c 40 67 65 78 20 5c 72 |@gy \rai|l@gex \r|
|000035a0| 61 69 6c 40 67 72 78 20 | 3a 20 67 6c 6f 62 61 6c |ail@grx |: global|
|000035b0| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 5c 72 61 | version|s of \ra|
|000035c0| 69 6c 40 78 20 65 74 63 | 2c 0a 25 20 20 20 20 20 |il@x etc|,.% |
|000035d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035f0| 20 20 20 20 74 6f 20 70 | 61 73 73 20 76 61 6c 75 | to p|ass valu|
|00003600| 65 73 20 6f 76 65 72 20 | 67 72 6f 75 70 20 63 6c |es over |group cl|
|00003610| 6f 73 69 6e 67 73 0a 25 | 20 5c 72 61 69 6c 40 6d |osings.%| \rail@m|
|00003620| 78 20 3a 20 6d 61 78 69 | 6d 75 6d 20 78 20 73 6f |x : maxi|mum x so|
|00003630| 20 66 61 72 0a 25 20 5c | 72 61 69 6c 40 73 79 20 | far.% \|rail@sy |
|00003640| 3a 20 73 74 61 72 74 69 | 6e 67 20 5c 72 61 69 6c |: starti|ng \rail|
|00003650| 40 79 20 66 6f 72 20 61 | 6c 74 65 72 6e 61 74 69 |@y for a|lternati|
|00003660| 76 65 73 0a 25 20 5c 72 | 61 69 6c 40 6a 70 75 74 |ves.% \r|ail@jput|
|00003670| 20 3a 20 70 75 74 20 61 | 74 20 28 5c 72 61 69 6c | : put a|t (\rail|
|00003680| 40 6a 78 2c 5c 72 61 69 | 6c 40 6a 79 29 0a 25 20 |@jx,\rai|l@jy).% |
|00003690| 5c 72 61 69 6c 40 6a 6f | 76 61 6c 5b 50 41 52 54 |\rail@jo|val[PART|
|000036a0| 5d 20 3a 20 70 75 74 20 | 5c 6f 76 61 6c 5b 50 41 |] : put |\oval[PA|
|000036b0| 52 54 5d 20 77 69 74 68 | 20 61 64 6a 75 73 74 0a |RT] with| adjust.|
|000036c0| 5c 6e 65 77 63 6f 75 6e | 74 5c 72 61 69 6c 40 6a |\newcoun|t\rail@j|
|000036d0| 78 0a 5c 6e 65 77 63 6f | 75 6e 74 5c 72 61 69 6c |x.\newco|unt\rail|
|000036e0| 40 6a 79 0a 5c 6e 65 77 | 63 6f 75 6e 74 5c 72 61 |@jy.\new|count\ra|
|000036f0| 69 6c 40 67 78 0a 5c 6e | 65 77 63 6f 75 6e 74 5c |il@gx.\n|ewcount\|
|00003700| 72 61 69 6c 40 67 79 0a | 5c 6e 65 77 63 6f 75 6e |rail@gy.|\newcoun|
|00003710| 74 5c 72 61 69 6c 40 67 | 65 78 0a 5c 6e 65 77 63 |t\rail@g|ex.\newc|
|00003720| 6f 75 6e 74 5c 72 61 69 | 6c 40 67 72 78 0a 5c 6e |ount\rai|l@grx.\n|
|00003730| 65 77 63 6f 75 6e 74 5c | 72 61 69 6c 40 73 79 0a |ewcount\|rail@sy.|
|00003740| 5c 6e 65 77 63 6f 75 6e | 74 5c 72 61 69 6c 40 6d |\newcoun|t\rail@m|
|00003750| 78 0a 5c 64 65 66 5c 72 | 61 69 6c 40 6a 70 75 74 |x.\def\r|ail@jput|
|00003760| 7b 0a 5c 70 75 74 28 5c | 6e 75 6d 62 65 72 5c 72 |{.\put(\|number\r|
|00003770| 61 69 6c 40 6a 78 2c 5c | 6e 75 6d 62 65 72 5c 72 |ail@jx,\|number\r|
|00003780| 61 69 6c 40 6a 79 29 0a | 5c 64 65 66 5c 72 61 69 |ail@jy).|\def\rai|
|00003790| 6c 40 6a 6f 76 61 6c 5b | 23 31 5d 7b 0a 5c 61 64 |l@joval[|#1]{.\ad|
|000037a0| 76 61 6e 63 65 5c 72 61 | 69 6c 40 6a 78 20 62 79 |vance\ra|il@jx by|
|000037b0| 20 5c 72 61 69 6c 40 6a | 6f 69 6e 61 64 6a 0a 5c | \rail@j|oinadj.\|
|000037c0| 72 61 69 6c 40 6a 70 75 | 74 7b 5c 6f 76 61 6c 28 |rail@jpu|t{\oval(|
|000037d0| 5c 6e 75 6d 62 65 72 5c | 72 61 69 6c 40 6a 6f 69 |\number\|rail@joi|
|000037e0| 6e 73 7a 2c 5c 6e 75 6d | 62 65 72 5c 72 61 69 6c |nsz,\num|ber\rail|
|000037f0| 40 6a 6f 69 6e 73 7a 29 | 5b 23 31 5d 7d 0a 5c 61 |@joinsz)|[#1]}.\a|
|00003800| 64 76 61 6e 63 65 5c 72 | 61 69 6c 40 6a 78 20 62 |dvance\r|ail@jx b|
|00003810| 79 20 2d 5c 72 61 69 6c | 40 6a 6f 69 6e 61 64 6a |y -\rail|@joinadj|
|00003820| 0a 25 20 5c 72 61 69 6c | 40 62 61 72 73 70 6c 69 |.% \rail|@barspli|
|00003830| 74 20 3a 20 69 6e 63 6f | 6d 69 6e 67 20 73 70 6c |t : inco|ming spl|
|00003840| 69 74 20 66 6f 72 20 27 | 7c 27 0a 25 20 5c 72 61 |it for '||'.% \ra|
|00003850| 69 6c 40 70 6c 75 73 73 | 70 6c 69 74 20 3a 20 69 |il@pluss|plit : i|
|00003860| 6e 63 6f 6d 69 6e 67 20 | 73 70 6c 69 74 20 66 6f |ncoming |split fo|
|00003870| 72 20 27 2b 27 0a 5c 64 | 65 66 5c 72 61 69 6c 40 |r '+'.\d|ef\rail@|
|00003880| 62 61 72 73 70 6c 69 74 | 7b 0a 5c 61 64 76 61 6e |barsplit|{.\advan|
|00003890| 63 65 5c 72 61 69 6c 40 | 6a 79 20 62 79 20 2d 5c |ce\rail@|jy by -\|
|000038a0| 72 61 69 6c 40 6a 6f 69 | 6e 68 73 7a 0a 5c 72 61 |rail@joi|nhsz.\ra|
|000038b0| 69 6c 40 6a 6f 76 61 6c | 5b 74 72 5d 0a 5c 61 64 |il@joval|[tr].\ad|
|000038c0| 76 61 6e 63 65 5c 72 61 | 69 6c 40 6a 78 20 62 79 |vance\ra|il@jx by|
|000038d0| 20 5c 72 61 69 6c 40 6a | 6f 69 6e 68 73 7a 0a 5c | \rail@j|oinhsz.\|
|000038e0| 64 65 66 5c 72 61 69 6c | 40 70 6c 75 73 73 70 6c |def\rail|@plusspl|
|000038f0| 69 74 7b 0a 5c 61 64 76 | 61 6e 63 65 5c 72 61 69 |it{.\adv|ance\rai|
|00003900| 6c 40 6a 79 20 62 79 20 | 2d 5c 72 61 69 6c 40 6a |l@jy by |-\rail@j|
|00003910| 6f 69 6e 68 73 7a 0a 5c | 61 64 76 61 6e 63 65 5c |oinhsz.\|advance\|
|00003920| 72 61 69 6c 40 6a 78 20 | 62 79 20 5c 72 61 69 6c |rail@jx |by \rail|
|00003930| 40 6a 6f 69 6e 73 7a 0a | 5c 72 61 69 6c 40 6a 6f |@joinsz.|\rail@jo|
|00003940| 76 61 6c 5b 74 6c 5d 0a | 5c 61 64 76 61 6e 63 65 |val[tl].|\advance|
|00003950| 5c 72 61 69 6c 40 6a 78 | 20 62 79 20 2d 5c 72 61 |\rail@jx| by -\ra|
|00003960| 69 6c 40 6a 6f 69 6e 68 | 73 7a 0a 25 20 5c 72 61 |il@joinh|sz.% \ra|
|00003970| 69 6c 40 61 6c 74 7b 53 | 50 4c 49 54 7d 20 3a 20 |il@alt{S|PLIT} : |
|00003980| 73 74 61 72 74 20 61 6c | 74 65 72 6e 61 74 69 76 |start al|ternativ|
|00003990| 65 73 20 77 69 74 68 20 | 69 6e 63 6f 6d 69 6e 67 |es with |incoming|
|000039a0| 20 73 70 6c 69 74 20 53 | 50 4c 49 54 0a 5c 64 65 | split S|PLIT.\de|
|000039b0| 66 5c 72 61 69 6c 40 61 | 6c 74 23 31 7b 0a 5c 72 |f\rail@a|lt#1{.\r|
|000039c0| 61 69 6c 40 73 79 3d 5c | 72 61 69 6c 40 79 0a 5c |ail@sy=\|rail@y.\|
|000039d0| 72 61 69 6c 40 6a 78 3d | 5c 72 61 69 6c 40 78 0a |rail@jx=|\rail@x.|
|000039e0| 5c 72 61 69 6c 40 6a 79 | 3d 5c 72 61 69 6c 40 79 |\rail@jy|=\rail@y|
|000039f0| 0a 5c 61 64 76 61 6e 63 | 65 5c 72 61 69 6c 40 78 |.\advanc|e\rail@x|
|00003a00| 20 62 79 20 5c 72 61 69 | 6c 40 6a 6f 69 6e 73 7a | by \rai|l@joinsz|
|00003a10| 0a 5c 72 61 69 6c 40 6d | 78 3d 30 0a 5c 6c 65 74 |.\rail@m|x=0.\let|
|00003a20| 5c 72 61 69 6c 40 6c 69 | 73 74 3d 5c 40 65 6d 70 |\rail@li|st=\@emp|
|00003a30| 74 79 0a 5c 6c 65 74 5c | 72 61 69 6c 40 63 6f 6d |ty.\let\|rail@com|
|00003a40| 6d 61 3d 5c 40 65 6d 70 | 74 79 0a 5c 6c 65 74 5c |ma=\@emp|ty.\let\|
|00003a50| 72 61 69 6c 40 73 70 6c | 69 74 3d 23 31 0a 5c 62 |rail@spl|it=#1.\b|
|00003a60| 65 67 69 6e 67 72 6f 75 | 70 0a 5c 72 61 69 6c 40 |egingrou|p.\rail@|
|00003a70| 73 78 3d 5c 72 61 69 6c | 40 78 0a 5c 72 61 69 6c |sx=\rail|@x.\rail|
|00003a80| 40 72 78 3d 30 0a 25 20 | 5c 72 61 69 6c 40 6e 65 |@rx=0.% |\rail@ne|
|00003a90| 78 74 61 6c 74 7b 46 49 | 58 7d 7b 59 7d 20 3a 20 |xtalt{FI|X}{Y} : |
|00003aa0| 73 74 61 72 74 20 6e 65 | 78 74 20 61 6c 74 65 72 |start ne|xt alter|
|00003ab0| 6e 61 74 69 76 65 20 61 | 74 20 76 65 72 74 69 63 |native a|t vertic|
|00003ac0| 61 6c 20 70 6f 73 69 74 | 69 6f 6e 20 59 0a 25 20 |al posit|ion Y.% |
|00003ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ae0| 20 20 20 20 20 20 20 20 | 61 6e 64 20 66 69 78 2d | |and fix-|
|00003af0| 75 70 20 46 49 58 0a 5c | 64 65 66 5c 72 61 69 6c |up FIX.\|def\rail|
|00003b00| 40 6e 65 78 74 61 6c 74 | 23 31 23 32 7b 0a 5c 67 |@nextalt|#1#2{.\g|
|00003b10| 6c 6f 62 61 6c 5c 72 61 | 69 6c 40 67 78 3d 5c 72 |lobal\ra|il@gx=\r|
|00003b20| 61 69 6c 40 78 0a 5c 67 | 6c 6f 62 61 6c 5c 72 61 |ail@x.\g|lobal\ra|
|00003b30| 69 6c 40 67 79 3d 5c 72 | 61 69 6c 40 79 0a 5c 67 |il@gy=\r|ail@y.\g|
|00003b40| 6c 6f 62 61 6c 5c 72 61 | 69 6c 40 67 65 78 3d 5c |lobal\ra|il@gex=\|
|00003b50| 72 61 69 6c 40 65 78 0a | 5c 67 6c 6f 62 61 6c 5c |rail@ex.|\global\|
|00003b60| 72 61 69 6c 40 67 72 78 | 3d 5c 72 61 69 6c 40 72 |rail@grx|=\rail@r|
|00003b70| 78 0a 5c 65 6e 64 67 72 | 6f 75 70 0a 5c 69 66 6e |x.\endgr|oup.\ifn|
|00003b80| 75 6d 5c 72 61 69 6c 40 | 67 78 3e 5c 72 61 69 6c |um\rail@|gx>\rail|
|00003b90| 40 6d 78 5c 72 61 69 6c | 40 6d 78 3d 5c 72 61 69 |@mx\rail|@mx=\rai|
|00003ba0| 6c 40 67 78 5c 66 69 0a | 5c 69 66 6e 75 6d 5c 72 |l@gx\fi.|\ifnum\r|
|00003bb0| 61 69 6c 40 67 72 78 3e | 5c 72 61 69 6c 40 6d 78 |ail@grx>|\rail@mx|
|00003bc0| 5c 72 61 69 6c 40 6d 78 | 3d 5c 72 61 69 6c 40 67 |\rail@mx|=\rail@g|
|00003bd0| 72 78 5c 66 69 0a 5c 65 | 64 65 66 5c 72 61 69 6c |rx\fi.\e|def\rail|
|00003be0| 40 6c 69 73 74 7b 5c 72 | 61 69 6c 40 6c 69 73 74 |@list{\r|ail@list|
|00003bf0| 5c 72 61 69 6c 40 63 6f | 6d 6d 61 5c 6e 75 6d 62 |\rail@co|mma\numb|
|00003c00| 65 72 5c 72 61 69 6c 40 | 67 65 78 3a 5c 6e 75 6d |er\rail@|gex:\num|
|00003c10| 62 65 72 5c 72 61 69 6c | 40 67 79 7d 0a 5c 64 65 |ber\rail|@gy}.\de|
|00003c20| 66 5c 72 61 69 6c 40 63 | 6f 6d 6d 61 7b 2c 7d 0a |f\rail@c|omma{,}.|
|00003c30| 5c 72 61 69 6c 40 73 70 | 6c 69 74 0a 5c 6c 65 74 |\rail@sp|lit.\let|
|00003c40| 5c 72 61 69 6c 40 73 70 | 6c 69 74 3d 5c 40 65 6d |\rail@sp|lit=\@em|
|00003c50| 70 74 79 0a 5c 72 61 69 | 6c 40 73 65 74 79 7b 23 |pty.\rai|l@sety{#|
|00003c60| 32 7d 0a 5c 72 61 69 6c | 40 74 6d 70 61 3d 5c 72 |2}.\rail|@tmpa=\r|
|00003c70| 61 69 6c 40 6a 79 0a 5c | 61 64 76 61 6e 63 65 5c |ail@jy.\|advance\|
|00003c80| 72 61 69 6c 40 74 6d 70 | 61 20 62 79 20 2d 5c 72 |rail@tmp|a by -\r|
|00003c90| 61 69 6c 40 79 0a 5c 61 | 64 76 61 6e 63 65 5c 72 |ail@y.\a|dvance\r|
|00003ca0| 61 69 6c 40 74 6d 70 61 | 20 62 79 20 2d 5c 72 61 |ail@tmpa| by -\ra|
|00003cb0| 69 6c 40 6a 6f 69 6e 68 | 73 7a 0a 5c 72 61 69 6c |il@joinh|sz.\rail|
|00003cc0| 40 6a 70 75 74 7b 5c 6c | 69 6e 65 28 30 2c 2d 31 |@jput{\l|ine(0,-1|
|00003cd0| 29 7b 5c 6e 75 6d 62 65 | 72 5c 72 61 69 6c 40 74 |){\numbe|r\rail@t|
|00003ce0| 6d 70 61 7d 7d 0a 5c 72 | 61 69 6c 40 6a 79 3d 5c |mpa}}.\r|ail@jy=\|
|00003cf0| 72 61 69 6c 40 79 0a 5c | 61 64 76 61 6e 63 65 5c |rail@y.\|advance\|
|00003d00| 72 61 69 6c 40 6a 79 20 | 62 79 20 5c 72 61 69 6c |rail@jy |by \rail|
|00003d10| 40 6a 6f 69 6e 68 73 7a | 0a 5c 61 64 76 61 6e 63 |@joinhsz|.\advanc|
|00003d20| 65 5c 72 61 69 6c 40 6a | 78 20 62 79 20 5c 72 61 |e\rail@j|x by \ra|
|00003d30| 69 6c 40 6a 6f 69 6e 68 | 73 7a 0a 5c 72 61 69 6c |il@joinh|sz.\rail|
|00003d40| 40 6a 6f 76 61 6c 5b 62 | 6c 5d 0a 5c 61 64 76 61 |@joval[b|l].\adva|
|00003d50| 6e 63 65 5c 72 61 69 6c | 40 6a 78 20 62 79 20 2d |nce\rail|@jx by -|
|00003d60| 5c 72 61 69 6c 40 6a 6f | 69 6e 68 73 7a 0a 5c 72 |\rail@jo|inhsz.\r|
|00003d70| 61 69 6c 40 65 78 3d 5c | 72 61 69 6c 40 78 0a 5c |ail@ex=\|rail@x.\|
|00003d80| 62 65 67 69 6e 67 72 6f | 75 70 0a 5c 72 61 69 6c |begingro|up.\rail|
|00003d90| 40 73 78 3d 5c 72 61 69 | 6c 40 78 0a 5c 72 61 69 |@sx=\rai|l@x.\rai|
|00003da0| 6c 40 72 78 3d 30 0a 25 | 20 5c 72 61 69 6c 40 62 |l@rx=0.%| \rail@b|
|00003db0| 61 72 6a 6f 69 6e 20 3a | 20 6f 75 74 67 6f 69 6e |arjoin :| outgoin|
|00003dc0| 67 20 6a 6f 69 6e 20 66 | 6f 72 20 66 69 72 73 74 |g join f|or first|
|00003dd0| 20 27 7c 27 20 61 6c 74 | 65 72 6e 61 74 69 76 65 | '|' alt|ernative|
|00003de0| 0a 25 20 5c 72 61 69 6c | 40 70 6c 75 73 6a 6f 69 |.% \rail|@plusjoi|
|00003df0| 6e 20 3a 20 6f 75 74 67 | 6f 69 6e 67 20 6a 6f 69 |n : outg|oing joi|
|00003e00| 6e 20 66 6f 72 20 66 69 | 72 73 74 20 27 2b 27 20 |n for fi|rst '+' |
|00003e10| 61 6c 74 65 72 6e 61 74 | 69 76 65 0a 25 20 5c 72 |alternat|ive.% \r|
|00003e20| 61 69 6c 40 61 6c 74 6a | 6f 69 6e 20 3a 20 6a 6f |ail@altj|oin : jo|
|00003e30| 69 6e 20 66 6f 72 20 73 | 75 62 73 65 71 75 65 6e |in for s|ubsequen|
|00003e40| 74 20 61 6c 74 65 72 6e | 61 74 69 76 65 0a 5c 64 |t altern|ative.\d|
|00003e50| 65 66 5c 72 61 69 6c 40 | 62 61 72 6a 6f 69 6e 7b |ef\rail@|barjoin{|
|00003e60| 0a 5c 69 66 6e 75 6d 5c | 72 61 69 6c 40 79 3c 5c |.\ifnum\|rail@y<\|
|00003e70| 72 61 69 6c 40 73 79 0a | 5c 67 6c 6f 62 61 6c 5c |rail@sy.|\global\|
|00003e80| 72 61 69 6c 40 67 65 78 | 3d 5c 72 61 69 6c 40 6a |rail@gex|=\rail@j|
|00003e90| 78 0a 5c 65 6c 73 65 0a | 5c 67 6c 6f 62 61 6c 5c |x.\else.|\global\|
|00003ea0| 72 61 69 6c 40 67 65 78 | 3d 5c 72 61 69 6c 40 65 |rail@gex|=\rail@e|
|00003eb0| 78 0a 5c 61 64 76 61 6e | 63 65 5c 72 61 69 6c 40 |x.\advan|ce\rail@|
|00003ec0| 6a 79 20 62 79 20 2d 5c | 72 61 69 6c 40 6a 6f 69 |jy by -\|rail@joi|
|00003ed0| 6e 68 73 7a 0a 5c 72 61 | 69 6c 40 6a 6f 76 61 6c |nhsz.\ra|il@joval|
|00003ee0| 5b 74 6c 5d 0a 5c 61 64 | 76 61 6e 63 65 5c 72 61 |[tl].\ad|vance\ra|
|00003ef0| 69 6c 40 6a 78 20 62 79 | 20 2d 5c 72 61 69 6c 40 |il@jx by| -\rail@|
|00003f00| 6a 6f 69 6e 68 73 7a 0a | 5c 69 66 6e 75 6d 5c 72 |joinhsz.|\ifnum\r|
|00003f10| 61 69 6c 40 79 3c 5c 72 | 61 69 6c 40 73 79 0a 5c |ail@y<\r|ail@sy.\|
|00003f20| 72 61 69 6c 40 61 6c 74 | 6a 6f 69 6e 0a 5c 64 65 |rail@alt|join.\de|
|00003f30| 66 5c 72 61 69 6c 40 70 | 6c 75 73 6a 6f 69 6e 7b |f\rail@p|lusjoin{|
|00003f40| 0a 5c 67 6c 6f 62 61 6c | 5c 72 61 69 6c 40 67 65 |.\global|\rail@ge|
|00003f50| 78 3d 5c 72 61 69 6c 40 | 65 78 0a 5c 61 64 76 61 |x=\rail@|ex.\adva|
|00003f60| 6e 63 65 5c 72 61 69 6c | 40 6a 79 20 62 79 20 2d |nce\rail|@jy by -|
|00003f70| 5c 72 61 69 6c 40 6a 6f | 69 6e 68 73 7a 0a 5c 61 |\rail@jo|inhsz.\a|
|00003f80| 64 76 61 6e 63 65 5c 72 | 61 69 6c 40 6a 78 20 62 |dvance\r|ail@jx b|
|00003f90| 79 20 2d 5c 72 61 69 6c | 40 6a 6f 69 6e 73 7a 0a |y -\rail|@joinsz.|
|00003fa0| 5c 72 61 69 6c 40 6a 6f | 76 61 6c 5b 74 72 5d 0a |\rail@jo|val[tr].|
|00003fb0| 5c 61 64 76 61 6e 63 65 | 5c 72 61 69 6c 40 6a 78 |\advance|\rail@jx|
|00003fc0| 20 62 79 20 5c 72 61 69 | 6c 40 6a 6f 69 6e 68 73 | by \rai|l@joinhs|
|00003fd0| 7a 0a 5c 64 65 66 5c 72 | 61 69 6c 40 61 6c 74 6a |z.\def\r|ail@altj|
|00003fe0| 6f 69 6e 7b 0a 5c 72 61 | 69 6c 40 65 6c 69 6e 65 |oin{.\ra|il@eline|
|00003ff0| 0a 5c 72 61 69 6c 40 74 | 6d 70 61 3d 5c 72 61 69 |.\rail@t|mpa=\rai|
|00004000| 6c 40 6a 79 0a 5c 61 64 | 76 61 6e 63 65 5c 72 61 |l@jy.\ad|vance\ra|
|00004010| 69 6c 40 74 6d 70 61 20 | 62 79 20 2d 5c 72 61 69 |il@tmpa |by -\rai|
|00004020| 6c 40 79 0a 5c 61 64 76 | 61 6e 63 65 5c 72 61 69 |l@y.\adv|ance\rai|
|00004030| 6c 40 74 6d 70 61 20 62 | 79 20 2d 5c 72 61 69 6c |l@tmpa b|y -\rail|
|00004040| 40 6a 6f 69 6e 68 73 7a | 0a 5c 72 61 69 6c 40 6a |@joinhsz|.\rail@j|
|00004050| 70 75 74 7b 5c 6c 69 6e | 65 28 30 2c 2d 31 29 7b |put{\lin|e(0,-1){|
|00004060| 5c 6e 75 6d 62 65 72 5c | 72 61 69 6c 40 74 6d 70 |\number\|rail@tmp|
|00004070| 61 7d 7d 0a 5c 72 61 69 | 6c 40 6a 79 3d 5c 72 61 |a}}.\rai|l@jy=\ra|
|00004080| 69 6c 40 79 0a 5c 61 64 | 76 61 6e 63 65 5c 72 61 |il@y.\ad|vance\ra|
|00004090| 69 6c 40 6a 79 20 62 79 | 20 5c 72 61 69 6c 40 6a |il@jy by| \rail@j|
|000040a0| 6f 69 6e 68 73 7a 0a 5c | 61 64 76 61 6e 63 65 5c |oinhsz.\|advance\|
|000040b0| 72 61 69 6c 40 6a 78 20 | 62 79 20 2d 5c 72 61 69 |rail@jx |by -\rai|
|000040c0| 6c 40 6a 6f 69 6e 68 73 | 7a 0a 5c 72 61 69 6c 40 |l@joinhs|z.\rail@|
|000040d0| 6a 6f 76 61 6c 5b 62 72 | 5d 0a 5c 61 64 76 61 6e |joval[br|].\advan|
|000040e0| 63 65 5c 72 61 69 6c 40 | 6a 78 20 62 79 20 5c 72 |ce\rail@|jx by \r|
|000040f0| 61 69 6c 40 6a 6f 69 6e | 68 73 7a 0a 25 20 5c 72 |ail@join|hsz.% \r|
|00004100| 61 69 6c 40 65 6c 74 73 | 70 6c 69 74 20 45 58 3a |ail@elts|plit EX:|
|00004110| 59 3b 20 3a 20 73 70 6c | 69 74 20 45 58 3a 59 20 |Y; : spl|it EX:Y |
|00004120| 69 6e 74 6f 20 5c 72 61 | 69 6c 40 65 78 20 5c 72 |into \ra|il@ex \r|
|00004130| 61 69 6c 40 79 0a 25 20 | 5c 72 61 69 6c 40 65 6e |ail@y.% |\rail@en|
|00004140| 64 61 6c 74 7b 4a 4f 49 | 4e 7d 20 3a 20 65 6e 64 |dalt{JOI|N} : end|
|00004150| 20 61 6c 74 65 72 6e 61 | 74 69 76 65 73 20 77 69 | alterna|tives wi|
|00004160| 74 68 20 6f 75 74 67 6f | 69 6e 67 20 6a 6f 69 6e |th outgo|ing join|
|00004170| 20 4a 4f 49 4e 0a 5c 64 | 65 66 5c 72 61 69 6c 40 | JOIN.\d|ef\rail@|
|00004180| 65 6c 74 73 70 6c 69 74 | 23 31 3a 23 32 3b 7b 5c |eltsplit|#1:#2;{\|
|00004190| 72 61 69 6c 40 65 78 3d | 23 31 5c 72 61 69 6c 40 |rail@ex=|#1\rail@|
|000041a0| 79 3d 23 32 7d 0a 5c 64 | 65 66 5c 72 61 69 6c 40 |y=#2}.\d|ef\rail@|
|000041b0| 65 6e 64 61 6c 74 23 31 | 7b 0a 5c 67 6c 6f 62 61 |endalt#1|{.\globa|
|000041c0| 6c 5c 72 61 69 6c 40 67 | 78 3d 5c 72 61 69 6c 40 |l\rail@g|x=\rail@|
|000041d0| 78 0a 5c 67 6c 6f 62 61 | 6c 5c 72 61 69 6c 40 67 |x.\globa|l\rail@g|
|000041e0| 79 3d 5c 72 61 69 6c 40 | 79 0a 5c 67 6c 6f 62 61 |y=\rail@|y.\globa|
|000041f0| 6c 5c 72 61 69 6c 40 67 | 65 78 3d 5c 72 61 69 6c |l\rail@g|ex=\rail|
|00004200| 40 65 78 0a 5c 67 6c 6f | 62 61 6c 5c 72 61 69 6c |@ex.\glo|bal\rail|
|00004210| 40 67 72 78 3d 5c 72 61 | 69 6c 40 72 78 0a 5c 65 |@grx=\ra|il@rx.\e|
|00004220| 6e 64 67 72 6f 75 70 0a | 5c 69 66 6e 75 6d 5c 72 |ndgroup.|\ifnum\r|
|00004230| 61 69 6c 40 67 78 3e 5c | 72 61 69 6c 40 6d 78 5c |ail@gx>\|rail@mx\|
|00004240| 72 61 69 6c 40 6d 78 3d | 5c 72 61 69 6c 40 67 78 |rail@mx=|\rail@gx|
|00004250| 5c 66 69 0a 5c 69 66 6e | 75 6d 5c 72 61 69 6c 40 |\fi.\ifn|um\rail@|
|00004260| 67 72 78 3e 5c 72 61 69 | 6c 40 6d 78 5c 72 61 69 |grx>\rai|l@mx\rai|
|00004270| 6c 40 6d 78 3d 5c 72 61 | 69 6c 40 67 72 78 5c 66 |l@mx=\ra|il@grx\f|
|00004280| 69 0a 5c 65 64 65 66 5c | 72 61 69 6c 40 6c 69 73 |i.\edef\|rail@lis|
|00004290| 74 7b 5c 72 61 69 6c 40 | 6c 69 73 74 5c 72 61 69 |t{\rail@|list\rai|
|000042a0| 6c 40 63 6f 6d 6d 61 5c | 6e 75 6d 62 65 72 5c 72 |l@comma\|number\r|
|000042b0| 61 69 6c 40 67 65 78 3a | 5c 6e 75 6d 62 65 72 5c |ail@gex:|\number\|
|000042c0| 72 61 69 6c 40 67 79 7d | 0a 5c 72 61 69 6c 40 78 |rail@gy}|.\rail@x|
|000042d0| 3d 5c 72 61 69 6c 40 6d | 78 0a 5c 72 61 69 6c 40 |=\rail@m|x.\rail@|
|000042e0| 6a 78 3d 5c 72 61 69 6c | 40 78 0a 5c 72 61 69 6c |jx=\rail|@x.\rail|
|000042f0| 40 6a 79 3d 5c 72 61 69 | 6c 40 73 79 0a 5c 61 64 |@jy=\rai|l@sy.\ad|
|00004300| 76 61 6e 63 65 5c 72 61 | 69 6c 40 6a 78 20 62 79 |vance\ra|il@jx by|
|00004310| 20 5c 72 61 69 6c 40 6a | 6f 69 6e 73 7a 0a 5c 6c | \rail@j|oinsz.\l|
|00004320| 65 74 5c 72 61 69 6c 40 | 6a 6f 69 6e 3d 23 31 0a |et\rail@|join=#1.|
|00004330| 5c 40 66 6f 72 5c 72 61 | 69 6c 40 65 6c 74 3a 3d |\@for\ra|il@elt:=|
|00004340| 5c 72 61 69 6c 40 6c 69 | 73 74 5c 64 6f 7b 0a 5c |\rail@li|st\do{.\|
|00004350| 65 78 70 61 6e 64 61 66 | 74 65 72 5c 72 61 69 6c |expandaf|ter\rail|
|00004360| 40 65 6c 74 73 70 6c 69 | 74 5c 72 61 69 6c 40 65 |@eltspli|t\rail@e|
|00004370| 6c 74 3b 0a 5c 72 61 69 | 6c 40 6a 6f 69 6e 0a 5c |lt;.\rai|l@join.\|
|00004380| 6c 65 74 5c 72 61 69 6c | 40 6a 6f 69 6e 3d 5c 72 |let\rail|@join=\r|
|00004390| 61 69 6c 40 61 6c 74 6a | 6f 69 6e 0a 5c 72 61 69 |ail@altj|oin.\rai|
|000043a0| 6c 40 78 3d 5c 72 61 69 | 6c 40 6d 78 0a 5c 72 61 |l@x=\rai|l@mx.\ra|
|000043b0| 69 6c 40 79 3d 5c 72 61 | 69 6c 40 73 79 0a 5c 72 |il@y=\ra|il@sy.\r|
|000043c0| 61 69 6c 40 65 78 3d 5c | 72 61 69 6c 40 67 65 78 |ail@ex=\|rail@gex|
|000043d0| 0a 5c 61 64 76 61 6e 63 | 65 5c 72 61 69 6c 40 78 |.\advanc|e\rail@x|
|000043e0| 20 62 79 20 5c 72 61 69 | 6c 40 6a 6f 69 6e 73 7a | by \rai|l@joinsz|
|000043f0| 0a 25 20 5c 72 61 69 6c | 40 62 61 72 20 3a 20 73 |.% \rail|@bar : s|
|00004400| 74 61 72 74 20 27 7c 27 | 20 61 6c 74 65 72 6e 61 |tart '|'| alterna|
|00004410| 74 69 76 65 73 0a 25 20 | 5c 72 61 69 6c 40 6e 65 |tives.% |\rail@ne|
|00004420| 78 74 62 61 72 20 3a 20 | 6e 65 78 74 20 27 7c 27 |xtbar : |next '|'|
|00004430| 20 61 6c 74 65 72 6e 61 | 74 69 76 65 0a 25 20 5c | alterna|tive.% \|
|00004440| 72 61 69 6c 40 65 6e 64 | 62 61 72 20 3a 20 65 6e |rail@end|bar : en|
|00004450| 64 20 27 7c 27 20 61 6c | 74 65 72 6e 61 74 69 76 |d '|' al|ternativ|
|00004460| 65 73 0a 5c 64 65 66 5c | 72 61 69 6c 40 62 61 72 |es.\def\|rail@bar|
|00004470| 7b 0a 5c 72 61 69 6c 40 | 61 6c 74 5c 72 61 69 6c |{.\rail@|alt\rail|
|00004480| 40 62 61 72 73 70 6c 69 | 74 0a 5c 64 65 66 5c 72 |@barspli|t.\def\r|
|00004490| 61 69 6c 40 6e 65 78 74 | 62 61 72 7b 0a 5c 72 61 |ail@next|bar{.\ra|
|000044a0| 69 6c 40 6e 65 78 74 61 | 6c 74 5c 72 65 6c 61 78 |il@nexta|lt\relax|
|000044b0| 0a 5c 64 65 66 5c 72 61 | 69 6c 40 65 6e 64 62 61 |.\def\ra|il@endba|
|000044c0| 72 7b 0a 5c 72 61 69 6c | 40 65 6e 64 61 6c 74 5c |r{.\rail|@endalt\|
|000044d0| 72 61 69 6c 40 62 61 72 | 6a 6f 69 6e 0a 25 20 5c |rail@bar|join.% \|
|000044e0| 72 61 69 6c 40 70 6c 75 | 73 20 3a 20 73 74 61 72 |rail@plu|s : star|
|000044f0| 74 20 27 2b 27 20 61 6c | 74 65 72 6e 61 74 69 76 |t '+' al|ternativ|
|00004500| 65 73 0a 25 20 5c 72 61 | 69 6c 40 6e 65 78 74 70 |es.% \ra|il@nextp|
|00004510| 6c 75 73 3a 20 6e 65 78 | 74 20 27 2b 27 20 61 6c |lus: nex|t '+' al|
|00004520| 74 65 72 6e 61 74 69 76 | 65 0a 25 20 5c 72 61 69 |ternativ|e.% \rai|
|00004530| 6c 40 65 6e 64 70 6c 75 | 73 20 3a 20 65 6e 64 20 |l@endplu|s : end |
|00004540| 27 2b 27 20 61 6c 74 65 | 72 6e 61 74 69 76 65 73 |'+' alte|rnatives|
|00004550| 0a 5c 64 65 66 5c 72 61 | 69 6c 40 70 6c 75 73 7b |.\def\ra|il@plus{|
|00004560| 0a 5c 72 61 69 6c 40 61 | 6c 74 5c 72 61 69 6c 40 |.\rail@a|lt\rail@|
|00004570| 70 6c 75 73 73 70 6c 69 | 74 0a 5c 64 65 66 5c 72 |plusspli|t.\def\r|
|00004580| 61 69 6c 40 6e 65 78 74 | 70 6c 75 73 7b 0a 5c 72 |ail@next|plus{.\r|
|00004590| 61 69 6c 40 6e 65 78 74 | 61 6c 74 5c 72 61 69 6c |ail@next|alt\rail|
|000045a0| 40 66 69 78 70 6c 75 73 | 0a 5c 64 65 66 5c 72 61 |@fixplus|.\def\ra|
|000045b0| 69 6c 40 66 69 78 70 6c | 75 73 7b 0a 5c 69 66 6e |il@fixpl|us{.\ifn|
|000045c0| 75 6d 5c 72 61 69 6c 40 | 67 79 3c 5c 72 61 69 6c |um\rail@|gy<\rail|
|000045d0| 40 73 79 0a 5c 62 65 67 | 69 6e 67 72 6f 75 70 0a |@sy.\beg|ingroup.|
|000045e0| 5c 72 61 69 6c 40 78 3d | 5c 72 61 69 6c 40 67 78 |\rail@x=|\rail@gx|
|000045f0| 0a 5c 72 61 69 6c 40 79 | 3d 5c 72 61 69 6c 40 67 |.\rail@y|=\rail@g|
|00004600| 79 0a 5c 72 61 69 6c 40 | 65 78 3d 5c 72 61 69 6c |y.\rail@|ex=\rail|
|00004610| 40 67 65 78 0a 5c 72 61 | 69 6c 40 72 78 3d 5c 72 |@gex.\ra|il@rx=\r|
|00004620| 61 69 6c 40 67 72 78 0a | 5c 69 66 6e 75 6d 5c 72 |ail@grx.|\ifnum\r|
|00004630| 61 69 6c 40 78 3c 5c 72 | 61 69 6c 40 72 78 0a 5c |ail@x<\r|ail@rx.\|
|00004640| 72 61 69 6c 40 78 3d 5c | 72 61 69 6c 40 72 78 0a |rail@x=\|rail@rx.|
|00004650| 5c 72 61 69 6c 40 65 6c | 69 6e 65 0a 5c 72 61 69 |\rail@el|ine.\rai|
|00004660| 6c 40 6a 78 3d 5c 72 61 | 69 6c 40 78 0a 5c 72 61 |l@jx=\ra|il@x.\ra|
|00004670| 69 6c 40 6a 79 3d 5c 72 | 61 69 6c 40 79 0a 5c 61 |il@jy=\r|ail@y.\a|
|00004680| 64 76 61 6e 63 65 5c 72 | 61 69 6c 40 6a 79 20 62 |dvance\r|ail@jy b|
|00004690| 79 20 5c 72 61 69 6c 40 | 6a 6f 69 6e 68 73 7a 0a |y \rail@|joinhsz.|
|000046a0| 5c 72 61 69 6c 40 6a 6f | 76 61 6c 5b 62 72 5d 0a |\rail@jo|val[br].|
|000046b0| 5c 61 64 76 61 6e 63 65 | 5c 72 61 69 6c 40 6a 78 |\advance|\rail@jx|
|000046c0| 20 62 79 20 5c 72 61 69 | 6c 40 6a 6f 69 6e 68 73 | by \rai|l@joinhs|
|000046d0| 7a 0a 5c 72 61 69 6c 40 | 74 6d 70 61 3d 5c 72 61 |z.\rail@|tmpa=\ra|
|000046e0| 69 6c 40 73 79 0a 5c 61 | 64 76 61 6e 63 65 5c 72 |il@sy.\a|dvance\r|
|000046f0| 61 69 6c 40 74 6d 70 61 | 20 62 79 20 2d 5c 72 61 |ail@tmpa| by -\ra|
|00004700| 69 6c 40 6a 6f 69 6e 68 | 73 7a 0a 5c 61 64 76 61 |il@joinh|sz.\adva|
|00004710| 6e 63 65 5c 72 61 69 6c | 40 74 6d 70 61 20 62 79 |nce\rail|@tmpa by|
|00004720| 20 2d 5c 72 61 69 6c 40 | 6a 79 0a 5c 72 61 69 6c | -\rail@|jy.\rail|
|00004730| 40 6a 70 75 74 7b 5c 6c | 69 6e 65 28 30 2c 31 29 |@jput{\l|ine(0,1)|
|00004740| 7b 5c 6e 75 6d 62 65 72 | 5c 72 61 69 6c 40 74 6d |{\number|\rail@tm|
|00004750| 70 61 7d 7d 0a 5c 72 61 | 69 6c 40 6a 79 3d 5c 72 |pa}}.\ra|il@jy=\r|
|00004760| 61 69 6c 40 73 79 0a 5c | 61 64 76 61 6e 63 65 5c |ail@sy.\|advance\|
|00004770| 72 61 69 6c 40 6a 79 20 | 62 79 20 2d 5c 72 61 69 |rail@jy |by -\rai|
|00004780| 6c 40 6a 6f 69 6e 68 73 | 7a 0a 5c 61 64 76 61 6e |l@joinhs|z.\advan|
|00004790| 63 65 5c 72 61 69 6c 40 | 6a 78 20 62 79 20 5c 72 |ce\rail@|jx by \r|
|000047a0| 61 69 6c 40 6a 6f 69 6e | 68 73 7a 0a 5c 72 61 69 |ail@join|hsz.\rai|
|000047b0| 6c 40 6a 6f 76 61 6c 5b | 74 6c 5d 0a 5c 61 64 76 |l@joval[|tl].\adv|
|000047c0| 61 6e 63 65 5c 72 61 69 | 6c 40 6a 79 20 62 79 20 |ance\rai|l@jy by |
|000047d0| 5c 72 61 69 6c 40 6a 6f | 69 6e 68 73 7a 0a 5c 67 |\rail@jo|inhsz.\g|
|000047e0| 6c 6f 62 61 6c 5c 72 61 | 69 6c 40 67 78 3d 5c 72 |lobal\ra|il@gx=\r|
|000047f0| 61 69 6c 40 6a 78 0a 5c | 67 6c 6f 62 61 6c 5c 72 |ail@jx.\|global\r|
|00004800| 61 69 6c 40 67 79 3d 5c | 72 61 69 6c 40 6a 79 0a |ail@gy=\|rail@jy.|
|00004810| 5c 67 6c 6f 62 61 6c 5c | 72 61 69 6c 40 67 65 78 |\global\|rail@gex|
|00004820| 3d 5c 72 61 69 6c 40 67 | 78 0a 5c 67 6c 6f 62 61 |=\rail@g|x.\globa|
|00004830| 6c 5c 72 61 69 6c 40 67 | 72 78 3d 5c 72 61 69 6c |l\rail@g|rx=\rail|
|00004840| 40 72 78 0a 5c 65 6e 64 | 67 72 6f 75 70 0a 5c 64 |@rx.\end|group.\d|
|00004850| 65 66 5c 72 61 69 6c 40 | 65 6e 64 70 6c 75 73 7b |ef\rail@|endplus{|
|00004860| 0a 5c 72 61 69 6c 40 65 | 6e 64 61 6c 74 5c 72 61 |.\rail@e|ndalt\ra|
|00004870| 69 6c 40 70 6c 75 73 6a | 6f 69 6e 0a 25 20 5c 72 |il@plusj|oin.% \r|
|00004880| 61 69 6c 40 63 72 7b 59 | 7d 20 3a 20 63 61 72 72 |ail@cr{Y|} : carr|
|00004890| 69 61 67 65 20 72 65 74 | 75 72 6e 20 74 6f 20 76 |iage ret|urn to v|
|000048a0| 65 72 74 69 63 61 6c 20 | 70 6f 73 69 74 69 6f 6e |ertical |position|
|000048b0| 20 59 0a 5c 64 65 66 5c | 72 61 69 6c 40 63 72 23 | Y.\def\|rail@cr#|
|000048c0| 31 7b 0a 5c 72 61 69 6c | 40 74 6d 70 61 3d 5c 72 |1{.\rail|@tmpa=\r|
|000048d0| 61 69 6c 40 73 78 0a 5c | 61 64 76 61 6e 63 65 5c |ail@sx.\|advance\|
|000048e0| 72 61 69 6c 40 74 6d 70 | 61 20 62 79 20 5c 72 61 |rail@tmp|a by \ra|
|000048f0| 69 6c 40 6a 6f 69 6e 73 | 7a 0a 5c 69 66 6e 75 6d |il@joins|z.\ifnum|
|00004900| 5c 72 61 69 6c 40 78 3c | 5c 72 61 69 6c 40 74 6d |\rail@x<|\rail@tm|
|00004910| 70 61 5c 72 61 69 6c 40 | 78 3d 5c 72 61 69 6c 40 |pa\rail@|x=\rail@|
|00004920| 74 6d 70 61 5c 66 69 0a | 5c 72 61 69 6c 40 65 6c |tmpa\fi.|\rail@el|
|00004930| 69 6e 65 0a 5c 72 61 69 | 6c 40 6a 78 3d 5c 72 61 |ine.\rai|l@jx=\ra|
|00004940| 69 6c 40 78 0a 5c 72 61 | 69 6c 40 6a 79 3d 5c 72 |il@x.\ra|il@jy=\r|
|00004950| 61 69 6c 40 79 0a 5c 61 | 64 76 61 6e 63 65 5c 72 |ail@y.\a|dvance\r|
|00004960| 61 69 6c 40 78 20 62 79 | 20 5c 72 61 69 6c 40 6a |ail@x by| \rail@j|
|00004970| 6f 69 6e 73 7a 0a 5c 69 | 66 6e 75 6d 5c 72 61 69 |oinsz.\i|fnum\rai|
|00004980| 6c 40 78 3e 5c 72 61 69 | 6c 40 72 78 5c 72 61 69 |l@x>\rai|l@rx\rai|
|00004990| 6c 40 72 78 3d 5c 72 61 | 69 6c 40 78 5c 66 69 0a |l@rx=\ra|il@x\fi.|
|000049a0| 5c 61 64 76 61 6e 63 65 | 5c 72 61 69 6c 40 6a 79 |\advance|\rail@jy|
|000049b0| 20 62 79 20 2d 5c 72 61 | 69 6c 40 6a 6f 69 6e 68 | by -\ra|il@joinh|
|000049c0| 73 7a 0a 5c 72 61 69 6c | 40 6a 6f 76 61 6c 5b 74 |sz.\rail|@joval[t|
|000049d0| 72 5d 0a 5c 61 64 76 61 | 6e 63 65 5c 72 61 69 6c |r].\adva|nce\rail|
|000049e0| 40 6a 78 20 62 79 20 5c | 72 61 69 6c 40 6a 6f 69 |@jx by \|rail@joi|
|000049f0| 6e 68 73 7a 0a 5c 72 61 | 69 6c 40 73 65 74 79 7b |nhsz.\ra|il@sety{|
|00004a00| 23 31 7d 0a 5c 72 61 69 | 6c 40 74 6d 70 61 3d 5c |#1}.\rai|l@tmpa=\|
|00004a10| 72 61 69 6c 40 6a 79 0a | 5c 61 64 76 61 6e 63 65 |rail@jy.|\advance|
|00004a20| 5c 72 61 69 6c 40 74 6d | 70 61 20 62 79 20 2d 5c |\rail@tm|pa by -\|
|00004a30| 72 61 69 6c 40 79 0a 5c | 61 64 76 61 6e 63 65 5c |rail@y.\|advance\|
|00004a40| 72 61 69 6c 40 74 6d 70 | 61 20 62 79 20 2d 5c 72 |rail@tmp|a by -\r|
|00004a50| 61 69 6c 40 62 6f 78 73 | 70 0a 5c 61 64 76 61 6e |ail@boxs|p.\advan|
|00004a60| 63 65 5c 72 61 69 6c 40 | 74 6d 70 61 20 62 79 20 |ce\rail@|tmpa by |
|00004a70| 2d 5c 72 61 69 6c 40 6a | 6f 69 6e 68 73 7a 0a 5c |-\rail@j|oinhsz.\|
|00004a80| 72 61 69 6c 40 6a 70 75 | 74 7b 5c 6c 69 6e 65 28 |rail@jpu|t{\line(|
|00004a90| 30 2c 2d 31 29 7b 5c 6e | 75 6d 62 65 72 5c 72 61 |0,-1){\n|umber\ra|
|00004aa0| 69 6c 40 74 6d 70 61 7d | 7d 0a 5c 72 61 69 6c 40 |il@tmpa}|}.\rail@|
|00004ab0| 6a 79 3d 5c 72 61 69 6c | 40 79 0a 5c 61 64 76 61 |jy=\rail|@y.\adva|
|00004ac0| 6e 63 65 5c 72 61 69 6c | 40 6a 79 20 62 79 20 5c |nce\rail|@jy by \|
|00004ad0| 72 61 69 6c 40 62 6f 78 | 73 70 0a 5c 61 64 76 61 |rail@box|sp.\adva|
|00004ae0| 6e 63 65 5c 72 61 69 6c | 40 6a 79 20 62 79 20 5c |nce\rail|@jy by \|
|00004af0| 72 61 69 6c 40 6a 6f 69 | 6e 68 73 7a 0a 5c 61 64 |rail@joi|nhsz.\ad|
|00004b00| 76 61 6e 63 65 5c 72 61 | 69 6c 40 6a 78 20 62 79 |vance\ra|il@jx by|
|00004b10| 20 2d 5c 72 61 69 6c 40 | 6a 6f 69 6e 68 73 7a 0a | -\rail@|joinhsz.|
|00004b20| 5c 72 61 69 6c 40 6a 6f | 76 61 6c 5b 62 72 5d 0a |\rail@jo|val[br].|
|00004b30| 5c 61 64 76 61 6e 63 65 | 5c 72 61 69 6c 40 6a 79 |\advance|\rail@jy|
|00004b40| 20 62 79 20 2d 5c 72 61 | 69 6c 40 6a 6f 69 6e 68 | by -\ra|il@joinh|
|00004b50| 73 7a 0a 5c 72 61 69 6c | 40 74 6d 70 61 3d 5c 72 |sz.\rail|@tmpa=\r|
|00004b60| 61 69 6c 40 6a 78 0a 5c | 61 64 76 61 6e 63 65 5c |ail@jx.\|advance\|
|00004b70| 72 61 69 6c 40 74 6d 70 | 61 20 62 79 20 2d 5c 72 |rail@tmp|a by -\r|
|00004b80| 61 69 6c 40 73 78 0a 5c | 61 64 76 61 6e 63 65 5c |ail@sx.\|advance\|
|00004b90| 72 61 69 6c 40 74 6d 70 | 61 20 62 79 20 2d 5c 72 |rail@tmp|a by -\r|
|00004ba0| 61 69 6c 40 6a 6f 69 6e | 68 73 7a 0a 5c 72 61 69 |ail@join|hsz.\rai|
|00004bb0| 6c 40 6a 70 75 74 7b 5c | 6c 69 6e 65 28 2d 31 2c |l@jput{\|line(-1,|
|00004bc0| 30 29 7b 5c 6e 75 6d 62 | 65 72 5c 72 61 69 6c 40 |0){\numb|er\rail@|
|00004bd0| 74 6d 70 61 7d 7d 0a 5c | 72 61 69 6c 40 6a 78 3d |tmpa}}.\|rail@jx=|
|00004be0| 5c 72 61 69 6c 40 73 78 | 0a 5c 61 64 76 61 6e 63 |\rail@sx|.\advanc|
|00004bf0| 65 5c 72 61 69 6c 40 6a | 78 20 62 79 20 5c 72 61 |e\rail@j|x by \ra|
|00004c00| 69 6c 40 6a 6f 69 6e 68 | 73 7a 0a 5c 61 64 76 61 |il@joinh|sz.\adva|
|00004c10| 6e 63 65 5c 72 61 69 6c | 40 6a 79 20 62 79 20 2d |nce\rail|@jy by -|
|00004c20| 5c 72 61 69 6c 40 6a 6f | 69 6e 68 73 7a 0a 5c 72 |\rail@jo|inhsz.\r|
|00004c30| 61 69 6c 40 6a 6f 76 61 | 6c 5b 74 6c 5d 0a 5c 61 |ail@jova|l[tl].\a|
|00004c40| 64 76 61 6e 63 65 5c 72 | 61 69 6c 40 6a 78 20 62 |dvance\r|ail@jx b|
|00004c50| 79 20 2d 5c 72 61 69 6c | 40 6a 6f 69 6e 68 73 7a |y -\rail|@joinhsz|
|00004c60| 0a 5c 72 61 69 6c 40 74 | 6d 70 61 3d 5c 72 61 69 |.\rail@t|mpa=\rai|
|00004c70| 6c 40 62 6f 78 73 70 0a | 5c 61 64 76 61 6e 63 65 |l@boxsp.|\advance|
|00004c80| 5c 72 61 69 6c 40 74 6d | 70 61 20 62 79 20 2d 5c |\rail@tm|pa by -\|
|00004c90| 72 61 69 6c 40 6a 6f 69 | 6e 73 7a 0a 5c 72 61 69 |rail@joi|nsz.\rai|
|00004ca0| 6c 40 6a 70 75 74 7b 5c | 6c 69 6e 65 28 30 2c 2d |l@jput{\|line(0,-|
|00004cb0| 31 29 7b 5c 6e 75 6d 62 | 65 72 5c 72 61 69 6c 40 |1){\numb|er\rail@|
|00004cc0| 74 6d 70 61 7d 7d 0a 5c | 61 64 76 61 6e 63 65 5c |tmpa}}.\|advance\|
|00004cd0| 72 61 69 6c 40 6a 79 20 | 62 79 20 2d 5c 72 61 69 |rail@jy |by -\rai|
|00004ce0| 6c 40 74 6d 70 61 0a 5c | 61 64 76 61 6e 63 65 5c |l@tmpa.\|advance\|
|00004cf0| 72 61 69 6c 40 6a 78 20 | 62 79 20 5c 72 61 69 6c |rail@jx |by \rail|
|00004d00| 40 6a 6f 69 6e 68 73 7a | 0a 5c 72 61 69 6c 40 6a |@joinhsz|.\rail@j|
|00004d10| 6f 76 61 6c 5b 62 6c 5d | 0a 5c 72 61 69 6c 40 78 |oval[bl]|.\rail@x|
|00004d20| 3d 5c 72 61 69 6c 40 6a | 78 0a 5c 72 61 69 6c 40 |=\rail@j|x.\rail@|
|00004d30| 65 78 3d 5c 72 61 69 6c | 40 78 0a |ex=\rail|@x. |
+--------+-------------------------+-------------------------+--------+--------+